Cod sursa(job #2589046)
Utilizator | Data | 25 martie 2020 18:32:49 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <fstream>
using namespace std;
int a, b, s;
void citire()
{
ifstream in("adunare.in");
in>>a;
in>>b;
in.close();
}
void scriere()
{
ofstream out("adunare.out");
out<<s;
out.close();
}
int main()
{
citire();
s=a+b;
scriere();
return 0;
}