A + B Problem

来源:互联网 发布:centos和ubuntu区别 编辑:程序博客网 时间:2024/05/20 13:39
A + B Problem
Time Limit: 2000/1000ms (Java/Others)
Problem Description:

             Caculate A + B. Process to end of file.

Input:

The input consists of multiple line, each line contain two integers A and B, which means you need EOF format.                                  


Output:

For each case,output A + B in one line.
Needn't to save all the cases' answer in an array, just output the A + B after each cases.

Sample Input:

1 2
4 5

Sample Output:

3
9

Source:

GOJ


#include <stdio.h>int main(){    int a,b;    while(scanf("%d%d",&a,&b)!=EOF)    {        printf("%d\n",a+b);    }return 0;}


0 0
原创粉丝点击