杭电1000

Problem Description
Calculate A + B.
 

 

Input
Each line will contain two integers A and B. Process to end of file.
 

 

Output
For each case, output A + B in one line.
 

 

Sample Input
1 1
 

 

Sample Output
2
 

 

Author
HDOJ
 
学习c最为基础的题,也是我的刷题生涯的开始
 
 
#include<stdio.h> int main(viod) { int A,B; while(scanf("%d%d",&A,&B)!=EOF) printf("%d\n",A+B); return 0; }

你可能感兴趣的:(杭电1000)