# include <stdio.h> int main() { int a,b,c,r; printf("请输入三个整数:"); scanf("%d%d%d",&a,&b,&c); r=a+b+c; printf("%d+%d+%d=%d\n",a,b,c,r); return 0; }
忘记赋值的左右两边的区别