题解 | #按照格式输入并交换输出#
按照格式输入并交换输出
https://www.nowcoder.com/practice/95eb723a3e854376a7eb6d116cc7d875
#include <stdio.h> int main() { int a=0,b=0,c=0; scanf("a=%d,b=%d",&a, &b); c = a; a = b; b = c; printf("a=%d,b=%d",a,b); return 0; }
按照格式输入并交换输出
https://www.nowcoder.com/practice/95eb723a3e854376a7eb6d116cc7d875
#include <stdio.h> int main() { int a=0,b=0,c=0; scanf("a=%d,b=%d",&a, &b); c = a; a = b; b = c; printf("a=%d,b=%d",a,b); return 0; }
相关推荐