A+B Problem (EOF)

来源:互联网 发布:矩阵开关说明书 编辑:程序博客网 时间:2024/05/29 18:37
#include <iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)    {        cout<<a + b<<endl;    }                         return 0;}


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

0 0