码迷,mamicode.com
首页 > 其他好文 > 详细

XidianOJ 1000 a+b

时间:2016-11-12 22:46:08      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:eof   stdio.h   span   scan   blog   style   class   printf   pre   

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

 

XidianOJ 1000 a+b

标签:eof   stdio.h   span   scan   blog   style   class   printf   pre   

原文地址:http://www.cnblogs.com/ToTOrz/p/6057522.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!