But have your program declare the variable used to store the number as a floating-point variable. Run
Fantastic news! We've Found the answer you've been seeking!
Question:
But have your program declare the variable used to store the number as a floating-point variable. Run the program four times. The first time enter an integer, the second time enter a decimal number with less than six decimal places, the third time enter a number with more than six decimal places, and the fourth time enter a character constant. Using the output display, keep track of what number your program actually accepted from the data you typed in. What happened, if anything, and why?
Posted Date: