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