Question: Please write a c program Ask the user for 3 different types of numbers 1. An even number 2. A number between-10 and 10 (inclusive)
Ask the user for 3 different types of numbers 1. An even number 2. A number between-10 and 10 (inclusive) 3. A number outside of 18 and 65 Use an if statement to confirm that the user entered in the appropriate type of number. If the user entered in the correct output, print out Correct!. If the user entered in the incorrect input, print out Incorrect! Lastly, your program should ask the user to enter in the value 2.5. Your program should check to see in the number is close (between 2 and 3, but not 2.5): print out Close! if it is correct (2.5): print out Correct! or if it is incorrect print out Incorrect
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
