Answer:
#include <stdio.h>
int main(){
int total_amount = 100;
int age, i, amount;
printf("How old are you?: ");
scanf("%d", &age);
//int amount = 100 + (age * )
for (i = 1; i <= age; i ++){
amount = 100 + 5 * i;
total_amount += amount;
}
printf("On your %dth birthday you will receive $%d\\\\", age, amount);
printf("Over your whole life you will have received $%d\\", total_amount);
return 0;
}
Step-by-step explanation:
We start with initial value for total_amount = 100 since at age 0, the total_amount = 100