Cod sursa(job #2454397)
Utilizator | Data | 8 septembrie 2019 12:08:12 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<stdio.h>
int main()
{
clrscr();
ifstream f("adunare.in");
ofstream g("adunare.out");
int a,b,s,c;
f>>c;
cout<<c<<"\n";
cout<<"a:"<<a<<"\n";
cout<<"b:"<<b<<"\n";
cin>>a;
cin>>b;
cout<<("suma este:")<<a+b;
g<<a+b;
f.close();
g.close();
return 0;
}