Advertisement
naskedvi

S1 - zad.20

Mar 2nd, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int a, b, s=0;
  6. std:: cin >> a >> b;
  7. for(int i=a; i<=b; i++)
  8. {
  9. for(int j=1; j<=i; j++)
  10. {
  11. if(i%j==0)
  12. s+=j;
  13. }
  14. s=0;
  15. // računa sume, ali neće brojeve
  16. }
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement