our task is to Calculate a + b输入Input contains multiple test cases Each test case contains a pair of integers a and b one pair of integers per line A test case containing 0 0 terminates the input and
#include <stdio.h>
int main() { int a, b; while (scanf("%d %d", &a, &b) == 2 && (a || b)) { printf("%d\n", a + b); } return 0; }
原文地址: http://www.cveoy.top/t/topic/hjHf 著作权归作者所有。请勿转载和采集!