若干组数据,每组有两个数A,B,计算A+B,每组输出后面空一行
1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<math.h> 4 #include<string.h> 5 int main() 6 { 7 int m,n; 8 int a,b; 9 int i; 10 while (scanf("%d",&a)!=EOF) 11 { 12 scanf("%d",&b); 13 printf("%d ",a+b); 14 } 15 return 0; 16 }