Question: 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

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!