Cod sursa(job #2506319)
| Utilizator | Data | 7 decembrie 2019 20:25:54 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.36 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin ;
ofstream fout ;
int A,B;
void read(){
fin.open("adunare.in");
fin>>A;
fin>>B;
fin.close();
}
void sum(int n1,int n2){
fout.open("adunare.out");
fout<<A+B;
fout.close();
}
int main()
{
read();
sum(A,B);
return 0;
}
