使用scanf函数通过键盘给多个变量赋值并输出结果
# include <stdio.h>
int main(void)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
转载于:https://blog.51cto.com/tony1985/665821
使用scanf函数通过键盘给多个变量赋值并输出结果
# include <stdio.h>
int main(void)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("a = %d, b = %d, c = %d\n", a, b, c);
return 0;
}
转载于:https://blog.51cto.com/tony1985/665821