dim years, interestrate, noyears as decimal
dim total, upto, y as decimal
console.writeline("would you like A, use years of interest or B go up to an amount")
console.WriteLine("please enter years of interest on 1st line then interest rate as a decimal (eg. 5% = 0.05) on 2nd line and then amount in the account on 3rd line.")
noyears = console.ReadLine()
interestrate = console.readline()
total = console.readline()
interestrate = interestrate + 1
total = total * interestrate
loop until years = noyears
console.WriteLine("please enter interest rate on 1st line then number you would like to go up to on 2nd line and then amount in the account on 3rd line.")