Cod sursa(job #1190507)
Utilizator | Data | 25 mai 2014 14:07:07 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | itmarathon | Marime | 0.24 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
double a,b,c;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a;
f>>b;
c=a+b;
if(c<2000000)
g<<c<<endl;
g.close();
f.close();
return 0;
}