hihoCoder-1000-A+B

题目描述:传统的A+B题

使用语言:C

代码:

#include <stdio.h>

int main(void){

    int a,b;
    while((scanf("%d %d",&a, &b))!=EOF){
        printf("%d\n",a+b);
    }
    return 0;
}

RE:scanf打错括号位置

注记: !=EOF的意思是 控制台输入 ctrl+z结束时,scanf接收到的值

posted @ 2015-01-17 18:29  一梦轻枫  阅读(457)  评论(0编辑  收藏  举报