Cod sursa(job #41609)
Utilizator | Data | 28 martie 2007 13:41:48 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.18 kb |
#include <fstream.h>
int main()
{
int a,b;
ifstream fin("adunare.in");
ofstream fout("adunare.out");
fin>>a>>b;
while (a!=0)
{ b++;
a--;
}
fout<<b<<'\n';
return 0;
}