Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total = 0;
- for (int i = 0; i <= (999 - (999 % 3)) / 3; i++)
- {
- total += 3 * i;
- }
- for (int i = 0; i <= (999 - (999 % 5)) / 5; i++)
- {
- total += 5 * i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement