Having the correct formula can improve the program's output.
Type: Posts; User: Norm
Having the correct formula can improve the program's output.
The definition for the finalamount variable is inside inside of a pair of {}s and is not known outside of those {}s.
It is out of scope for where you are trying to use it. Read up on variable scope...
What does the program print out when it is executed?
If you get errors, please copy and paste here the full text of the error message.