从键盘输入两个整数a和b,计算a和b之和,并存入c中,最后在屏幕上输出c。怎么编?

2025-03-11 05:15:35
推荐回答(1个)
回答1:

main()
{
int a,b,c;
scanf("%d%d",&a,&b);
c=a+b;
printf("c=%d\n",c);
}