I got problem to write program concerning in money deposit into bank.
i.e : money = 100$, month = 3, interest = 3%/month
here we got :
1- Enter money into bank = 100
2- Enter month = 3
3- Total amount = 109.27
4- Total interest = 9.27
here what I wrote and it got error :
int money=1, month=1, sum=0;
cout<<"Enter money into bank ="; cin>>money;
cout<<"Enter month ="; cin>>month;
sum = money + money * 3/100
cout<<"Total amount ="<<sum;
cout<<Total interest ="<<sum - money;
Could anyone help me to fix this ?
Thanks in avance.