| Time limit : 10 sec | Memory limit : 32 M |
for each pair of integers A and B ( 0 <= A,B <= 10) , Output the result of A+B on a single line.
Sample Input
1 2 3 4Sample Output
3 7
Solution:
#include <stdio.h> int main() { int a=0,b=0; while(scanf("%d %d",&a,&b) == 2) { printf("%d\n",a+b); } return 0; }
本文将详细解读一个使用C语言实现的简单程序,该程序用于接收两个整数输入,并输出它们的和。通过实例代码,深入理解C语言的基本语法和输入输出操作。
1534

被折叠的 条评论
为什么被折叠?



