Cod sursa(job #614542)
Utilizator | Data | 6 octombrie 2011 19:51:46 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.17 kb |
#include<fstream>
int main()
{
int a, b, s;
std::ifstream f("adunare.in");
std::ofstream g("adunare.out");
f >> a >> b;
s = a + b;
g << s;
g.close();
}