Cod sursa(job #287376)
Utilizator | Data | 24 martie 2009 19:58:01 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,s;
fstream f("adunare.in",ios::in);fstream g("adunare.out",ios::out);
f>>a>>b;
s=a+b;
if(s<=2000000) g<<s;
f.close();
getch();
}