Hi, I am trying to figure out why whenever I input a number, I have to input it twice to go through the GetParam function. Example 1: (If I input a number less than the minimum.)
Please enter the monthly payment: 0
0
Please enter the monthly payment:
Example 2: (If I input a number that is between the minimum and maximum)
I tried it and it works but I don't understand how come you remove cin >> number from line 10 and 17. In my sense, cin >> number is asking the user to input again and again until it does not satisfy the while loop and return the number.