- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a,b,c;
- printf("这是一个加法计算器,欢迎您使用");
- printf("---------------------------");
- printf("请输入第一个数(输入完毕请按回车)");
- scanf("%d,&a");
- printf ("请输入第二个数(输入完毕请按回车)");
- scanf("%d,&b");
- c=a+b;
- printf("它们的和是%d,c");
- system("pause");
- return 0;
- }
复制代码 |