📜  交换两个数字的程序 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:39.945000             🧑  作者: Mango

代码示例1
#include

int main()
{
    int x = 20, y = 30, temp;
    
    temp = x;
    x = y;
    y = temp;
    
    printf("X = %d and Y = %d", x, y);
    
    return 0;
}