spance2life Posted January 11, 2010 Report Posted January 11, 2010 Buna am o problema ce tine mai multe de matematica si de informatica.Problema: "Calculati suma nr. divizibile cu 3 mai mici decat 1000 fara a parcurge numere"programu este in C, si tine mult de matematica trebuie dedusa o formula dare se pune in acel program. Poate cineva sa o rezolve? Quote
CyberWolf08 Posted January 11, 2010 Report Posted January 11, 2010 (edited) Cu parcurgere:C++ code - 9 lines - codepadCu formula:C++ code - 7 lines - codepadAm facut pana la 100 din greseala. Modifici si tu cu 1000... Edited January 11, 2010 by CyberWolf08 Quote
spance2life Posted January 12, 2010 Author Report Posted January 12, 2010 Multumesc @CyberWolf08 am inteles ! Quote