A+B for Input-Output Practice (VII)
发布时间
阅读量:
阅读量
Problem Description
Your task is to Calculate a + b.
The input will be composed of multiple sets containing integers a and b, each set separated by spaces, with one pair per line.
For each pair of integer inputs a and b, you are required to output their sum, and then print a newline.
Sample Input
1 5
10 20
Sample Output
6
30
#include<stdio.h>
int main()
{
int a, b;
while(scanf("%d %d", &a, &b)!=EOF) {
printf( "%d\n\n", a + b );
}
return 0;
}
全部评论 (0)
还没有任何评论哟~
