farafrecv Posted November 11, 2013 Report Share Posted November 11, 2013 Wsup?! Am niste nelamuriri in legatura cu recursivitatea -.- .. poate ma poate ajuta cineva.dexemplu cum se scrie recursiv printr-o functie urmatoarele probleme :valoarea minima dintr-un sir,suma elementelor de pe pozitiile impare din sir,cel mai mare divizor comun a doua numere , numerele prime dintr-un sir..etc macar la doua,trei daca imi puteti explica "would be awesome" .thx Quote Link to comment Share on other sites More sharing options...
skull Posted November 11, 2013 Report Share Posted November 11, 2013 "would be awesome" daca ti-ai face temele singur, ai mai invata ceva.int cmmdc(int x, int y) { if (x % y == 0) return y; else cmmdc(y, x%y);} Quote Link to comment Share on other sites More sharing options...