Advertisement

A+B for Input-Output Practice (I)

阅读量:
Problem Description

Your task is to Calculate a + b.

Too easy?! Of course! I specially designed the problem for acm beginners.

You must have noticed that some issues share identical identifiers with this particular problem, yes, all of these queries were intended to achieve the same objective.

Input

The input comprises a sequence of integer pairs (a, b), each separated by spaces, with one pair provided per line.

Output

Each pair of input integers a and b should produce their sum, which should be printed on a single line, such that each line of input corresponds to exactly one line of output.

Example Input
复制代码
Example Output
复制代码
    30
    
    
    
    
    
    
    
    #include<stdio.h>
    int main()
    {
    	int a,b;
    	while(scanf("%d%d",&a,&b)!=EOF)
    	{
    		printf("%d\n",a+b);
    	}
    }

全部评论 (0)

还没有任何评论哟~