with QBasic.
"Assume that your money is invested in an account that draws interest compounded annually. That is, at the end of each year the amount invested (principle) is multiplied by the interest rate, and that interest amount is added to the principle. Write a program, using a FOR.. NEXT LOOP, that will get the amount invested, the interest rate, and number of years from the keyboard (INPUT statements). It should then produce a printout showing how much money will be on hand at the end of EACH year."
So far, this is what I have:
INPUT "Enter amount to invest: ", moneyinvested
INPUT "Enter the interest rate: ", interestrate
INPUT "Enter number of years to invest: ", years
FOR X = years to 1 STEP -1
totalmoney = (moneyinvested * interestrate) + moneyinvested
NEXT X
Any help would be appreciated!