Afişează mesaje
Pagini: [1]
1  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 000 A+B : Aprilie 08, 2009, 16:11:47
Cel mai simplu Very Happy
Cod:
# #include <fstream>    
# #include <iomanip>   
# #include <string>   
#   
# using namespace std; 
# fstream fin("adunare.in",ios::in),fout("adunare.out",ios::out); 
# int a,b,c; 
#   
# int main(){ 
#     fin>>a; 
#     fin>>b; 
#     c=a+b; 
#     fout<<c;                     
# fout.close();fin.close(); 
# }
[code/]
Pagini: [1]
Powered by SMF 1.1.19 | SMF © 2006-2013, Simple Machines