Advertisement
naskedvi

S1 - zad.19.

Mar 2nd, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int a, br=0, s=0, g=1;
  6. std:: cin >> a;
  7. s=a;
  8. g=a;
  9. while(a!=0)
  10. {
  11. std:: cin >> a;
  12. br++;
  13. s+=a;
  14. g*=a;
  15. }
  16. std:: cout << "Suma: " << (float)s/br;
  17. std:: cout << "Suma: " << // n-ti korijen neee'am pooojma xD
  18.  
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement