Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. int tong=0;
  2. for(int i=3;i<1000;i+=3)
  3. {
  4. if(i%3==0)
  5. tong+=i;
  6. }
  7. for(int j=5;j<1000;j+=5)
  8. {
  9. if(j%5==0&&j%3!=0)
  10. tong+=j;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement