Afişează mesaje
Pagini: [1]
1  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 000 A+B : Aprilie 07, 2009, 18:17:59
[...]
cea mai usoara problema din lume
Cod:
    ptr borland c++:
Cod:
                         #include<fstream.h>
                          int main ()
                           {
                                             ifstream fin("adunare.in");
                                             ofstream fout("adunare.out");
                                             int a,b;
                                             fin>>a>>b;
                                              fout<<a+b;
                                              fin.close();
                                              fout.close();
                                              return 0;
}
Editat de admin: Foloseste tagul "code" cand postezi surse.

P.S.: Bravo! Esti cea mai tare!

Pagini: [1]
Powered by SMF 1.1.19 | SMF © 2006-2013, Simple Machines