scanf函数的运用练习
#define _CRT_SECURE_NO_WARNINGS 1
# include<stdio.h>
int main()
{
int a = 1;
int b = 1;
printf("a =\n ");
printf("b =\n ");
printf("输入的值");
scanf("%d%d", &a, &b);
a = a + b;
b = a - b;
a = a - b;
printf("a = %d\n", a);
printf("b = %d\n", b);
return 0;
}
的运用练习