#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main(void)

{

int years;

double rate, investment;


printf("원금 :");

scanf("%f", &investment);

printf("이율 :");

scanf("%f", &rate);



double total = investment;


for (years = 1;years <= 70;years++)

{

total = total * (1 + rate);

}



return 0;

}

웨안됨 ㅅㅂ