2437 - 两数之和
时间限制 : 1 秒
内存限制 : 128 MB
从键盘读入两个整数,计算这两个整数的和并输出。在行末输出一个换行符。
题目输入
输入为两个整数。
题目输出
输出这两个数的和。在行末输出一个换行符。
输入/输出样例
输入格式
1 2
输出格式
3
C语言解答
#include<stdio.h> int main() { int a,b,c; scanf("%d%d",&a,&b); c=a+b; printf("%d\n",c); return 0; }
C++解答
#include<stdio.h> int main() { int a,b,c; scanf("%d%d",&a,&b); c=a+b; printf("%d\n",c); return 0; }