C语言实现两个整数相加:简单易懂的代码示例
#include <stdio.h>
int main() { int n, a, b; scanf("%d", &n); // 读入数据组数 for (int i = 0; i < n; i++) { scanf("%d%d", &a, &b); // 读入两个整数 printf("%d\n", a + b); // 输出它们的和 } return 0; }
原文地址: https://www.cveoy.top/t/topic/oMp6 著作权归作者所有。请勿转载和采集!