#include "stdio.h" #include "stdlib.h" int num; int main(void) { int i, j, k; while(scanf("%d", &num) != EOF) { for(k=0; k<num; k++) { scanf("%d %d", &i, &j); printf("%d\n", i+j); } } system("pause"); return 0; }
时间: 2024-08-29 13:12:19
#include "stdio.h" #include "stdlib.h" int num; int main(void) { int i, j, k; while(scanf("%d", &num) != EOF) { for(k=0; k<num; k++) { scanf("%d %d", &i, &j); printf("%d\n", i+j); } } system("pause"); return 0; }