fork download
#include <stdio.h>

int main(void) {
	 float startValue = 100;
 float interestRate = 0.015;
 float firstYearValue;
 float secondYearValue;
 float thirdYearValue;
 firstYearValue = startValue + (startValue * interestRate);
 secondYearValue = firstYearValue + (firstYearValue * interestRate);
 thirdYearValue = secondYearValue + (secondYearValue * interestRate);
 /* Your code */
 printf("After first year: %f\n", firstYearValue);
 printf("After second year: %f\n", secondYearValue);
 printf("After third year: %f\n", thirdYearValue);
	return 0;
}
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
After first year: 101.500000
After second year: 103.022499
After third year: 104.567833