Hello, I'm having two issues with a program that basically converts the inputted temperature from degrees Fahrenheit to degrees Celsius (code attached).
The first problem is the fact that it does not print out the last value of the temperature conversion table. For instance, if I were to convert from 20 to 25 degrees with a step size of 5, it would only show the value 20.00 with its Celsius companion, but not 25.00. (It does compute the correct number of computed temperatures.) How would I fix this?
Also, how might I prevent the program from going to an infinite loop when the step size is of a smaller increment? For my assignment, when the step size is less than 0.001, no table will be printed and an error message will be shown. I've tried adding another if statement, but it prints the table (which is not what it's supposed to do).
Much help would be appreciated. (Note, I am a beginner to programming and this is for an introductory course.) Thank you.