You have invested $100 in 1800 with a 10% interest rate compounded. How much money will be in the account in year 2000 use loop
this is what I have so far
CODE
maxi = 1
maxy = 0
for(int i=1, i,=10, i=i+1)
{
cout<<"Enter y"
cin >> y
if(y>maxy)
{
maxy=y
maxi=i
}
cout<<maxi<<""<<maxy