#include <iostream>
#include <string>
using namespace std;
int main()
{
float total_money;
float money;
float interest_rate;
float deposit_years;
money =10;
interest_rate =0.1;
deposit_years =10;
total_money =money*interest_rate*deposit_years+money;
cout << "total_money = "<< total_money << endl;
cin>>total_money;
return 0;
}
728x90
'공부 > 프로그래밍' 카테고리의 다른 글
[C언어] 반복문 printf 출력에서 마지막엔 \n(줄바꿈) 안하게 하기 (0) | 2019.06.24 |
---|---|
C++ .size() 써보기 (0) | 2019.05.28 |
switch 문 (0) | 2019.05.18 |
[c언어]에서 strlen()를 대체할 수 있는 방법.c (0) | 2019.05.13 |
[아두이노] LED, RGB LED 코딩 (0) | 2019.01.10 |