Mortgage calulator project troubles

Hi Guys,

I’m going through the fundamentals and I am having major dramas with this project!

I have attached a picture showing one of many issues I cant seem to resolve that it doesnt recognise the var “numberOfPayments”.

It is also displaying an error code whenever I try to do the final calc (after entering all the values)

Any tips would be appreciated!

thanks all

Hi. You must declare your double numberofPayment outside the ‘while’.

1 Like

Thanks for your help!