this assignment is about data types and condition checking in c ask the user to enter three numbers one after each other the numbers can be a decimal numbers one or two decimal precision such as 5 4 or 6 32 or integer between 0 and 10 then find
This assignment is about data types and condition checking in C++. Ask the user to enter three numbers, one after each other. The numbers can be a decimal numbers (one or two decimal precision, such as 5.4 or 6.32) or integer between 0 and 10. Then find maximum of three numbers and message the user. Examples runs are given below.
Example -1
Enter a number: 4.3
Enter a number: 0.5
Enter a number: 6.7
The max of three number: 6.7
Example -2
Enter a number: 0.30
Enter a number: 5
Enter a number: 0.7
The max of three number: 5
Example -3
Enter a number: 3
Enter a number: 3
Enter a number: 3
The max of three number: 3
PS: Assume that numbers are entered as described. You do not need to verify whether the format is correct or not.