Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int valorInicial = 300;
- int total = 0;
- for(int i = 0, j=50; i<46;i++,j+=50){
- total += (valorInicial+j);
- printf("Sum: %d\n",valorInicial+j);
- }
- printf("Total: %d\n",total);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement