「HD_ACM」A+B for Input-Output Practice (VII)

来源:互联网 发布:证券交易模型软件 编辑:程序博客网 时间:2024/05/22 02:24
Problem Description
Your task is to Calculate a + b.
->你的任务是计算A + B
 
Input
The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line. 
->输入包括一系列整数a和b用一个空格隔开每行一个整数对
 
Output
For each pair of input integers a and b you should output the sum of a and b, and followed by a blank line. 
->对于每一对输入整数a和b你应该输出a和b的值用一个空行
 

题目解析


代码解析

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


0 0