A+B for Input-Output Practice (II)

来源:互联网 发布:淘宝衣服代购是正品吗 编辑:程序博客网 时间:2024/05/21 07:09


Time Limit: 1000MSMemory Limit: 65536KB
SubmitStatistic

Problem Description

Your task is to Calculate a + b.

Input

Your task is to Calculate a + b.

Output

For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.

Example Input

21 510 20

Example Output

630

Hint

 

Author

HDOJ
#include<stdio.h>
int main()
{
    int a,b,n,i;
    scanf("%d",&n);
    for (i=1;i<=n;i++)
    {
        scanf("%d %d",&a,&b);
        printf("%d\n",a+b);
    }
    return 0;
}
原创粉丝点击