#include<stdio.h>
int main()
{
printf("本程序为整数求和程序\n");
int num1 = 0;
int num2 = 0;
int sum = 0;
printf("请输入第一个整数:");
scanf_s("%d", &num1);
printf("请输入第二个整数:");
scanf_s("%d", &num2);
sum = num1 + num2;
printf("和 = %d\n", sum);
return 0;
}
//如有优化欢迎各位大佬批评指正
标签:入门,num2,新人,sum,加法,整数,int,printf,num1 From: https://blog.51cto.com/u_16214658/6947960