Cod sursa(job #2212912)
Utilizator | Data | 15 iunie 2018 11:25:55 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main(){
ifstream f; //declare file
f.open("adunare.in"); //reads the file
int a,b;
f>>a>>b; //assign values to a and b from file
ofstream output("adunare.out");
output<<a+b;
return 0;
}