c语言练习题(一)

求整数a,b的和。 输入 测试案例有多行,每行为a,b的值。 输出 输出多行,对应a+b的结果。 样例输入 1 2 4 5 6 9 #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF){ printf("%d\n",a+
相关文章
相关标签/搜索