Cod sursa(job #2212905)
Utilizator | Data | 15 iunie 2018 11:10:12 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
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("input.txt"); //reads the file
int a,b;
f>>a>>b; //assign values to a and b from file
ofstream output("output.txt");
output<<a+b;
return 0;
}