新手入门--输出格式七
来源:互联网 发布:团购软件 编辑:程序博客网 时间:2024/04/26 07:06
新手入门
输入格式七:
A+B for Input-Output Practice (VII)
Problem Description
Your task is to Calculate 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.
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.
Sample Input
1 510 20
Sample Output
630
注意:输出一组结果,输出一个空行,最后有一个空行的!
代码:
#include<stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) printf("%d\n\n",a+b); return 0;}
0 0
- 新手入门--输出格式七
- 新手入门--输出格式八
- python新手入门(七)
- 新手入门--输入格式二
- 新手入门--输入格式三
- 新手入门--输入格式四
- 新手入门--输入格式五
- 新手入门--输入格式六
- MC新手入门(七)------文本设置
- MC新手入门(四十七)------ 重力感应
- 输出格式
- 格式输出
- 输出格式
- 输出格式
- 输出格式
- 输出格式
- 输出格式
- 输出格式
- c++接口定义及实现举例
- #pragma pack(n)对齐用法详解(转)
- 理工大学ACM平台题答案关于C语言 1279 输出入门
- The diff between Awake,Start And OnEnable
- 细说 #pragma pack(n)
- 新手入门--输出格式七
- SQL&NoSQL年代记
- C#之扩展方法
- JConsole命令(Java Monitoring and Management Console)
- jmap命令(Java Memory Map)
- 框架中新增级联查询
- Java VisualVM(Java Virtual Machine Monitoring, Troubleshooting, and Profiling Tool)
- ubuntu vsftpd安装
- 关于canvas画统计图与统计图的水平或坚直滑动