Question: Write a program that will comparing a number input by the user to the integer number 4 2 . Have the user input an integer

Write a program that will comparing a number input by the user to the integer number 42. Have the user input an integer value. If they entered a value higher than 42 print the message "your number is higher" If they entered a value lower than 42 print the message "your number is lower If they enter the number 42 print the message "you entered 42

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 Programming Questions!