Tilt Posted April 24, 2013 Report Posted April 24, 2013 se davoid f (int x){ cout<<”*”; | printf(”*”);if(x>0) {cout<<x; | printf(”%d”,x);f(x/100);cout<<”*”; | printf(”*”);}}ce ne returneaza f(12345) ?e bine *12345*123*1**** ? Quote
dekeeu Posted April 24, 2013 Report Posted April 24, 2013 Si.. de ce nu folosesti un compilator ? Quote
1000DotS Posted April 24, 2013 Report Posted April 24, 2013 (edited) *12345*123*1****Asa e cum ai spus tu...am compilat...Vrei sa stii pasii?...sau doar voiai sa te asiguri ca e corect? Edited April 24, 2013 by 1000DotS Quote
Tilt Posted April 24, 2013 Author Report Posted April 24, 2013 Si.. de ce nu folosesti un compilator ?ai dreptate, dar tot nu mi-ai raspuns la intrebare ... Quote
dekeeu Posted April 24, 2013 Report Posted April 24, 2013 ai dreptate, dar tot nu mi-ai raspuns la intrebare ...Da, e ok .C++ code - 17 lines - codepad Quote