Are you sure for :
count >= years ?
Shouldn't it be :
count <= years ?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi guys, doing an assignment atm for a basic term deposit calculator. The app recieves input from the user via textboxes in the form of deposit value, interest rate, and term length (number of years). Then it calculates the interest earned and displays a string in the console for each year in the form of:
"Year x: interest = z and deposit = z+initial deposit" - and then it continues the loop for the rest of the years.
For some reason in my for loop my Console.WriteLine method produces no output in the console window. However if I write something outside of the loop it shows. Can anyone help me
85586-image.png
Are you sure for :
count >= years ?
Shouldn't it be :
count <= years ?