Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int n, s;
- s = 0;
- for (n = 1; n <= 12; ++n ){
- if (n % 3 == 0 ){
- s = s + n;
- }
- }
- printf("%d\n", s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement