Present Value (PV) is a formula used in finance that calculates the present day value of an amount received at a future date.
PV is calculated from the equation:
Where c is the cash flow, r is the rate of return and n is the number of periods. Write a program that reads the values of C,r,n and prints the
Present Value. Here is a sample run. User input is in blue color.
Please enter C: 3000
Please enter r: 0.5
Please enter n: 2
PV=1000