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; }