I’m using this formula to calculate the monthly payments for a loan. It’s not finished but I’m new to programming and I’m trying to figure out why my MonthlyPayment is giving me the product of my L value. I’m not sure if the formula is only reading the L variable or what.
I doubt this is the issue, but could you try initializing all of your variables at the top to zero? This will make sure that they don’t start with a non-zero value like they would when not initialized.
Good to hear man how are you liking it so far? This is C++. It’s a very good starting language. Pretty simple. I really really enjoy it and if you want to learn multiple languages I definitely recommend it.
2
u/tarmitage Mar 25 '19
I’m using this formula to calculate the monthly payments for a loan. It’s not finished but I’m new to programming and I’m trying to figure out why my MonthlyPayment is giving me the product of my L value. I’m not sure if the formula is only reading the L variable or what.
1
u/vwra Mar 25 '19
Also new to programming, I only know Java yet, what programming language is this?