Question: Write a program that asks you to enter an integer value. Assign (read it into) a variable of type int.. The program should then check

Write a program that asks you to enter an integer value. Assign (read it into) a variable of type int.. The program should then check if the variable is small enough to be type short.. If it is, the program should print

_____ is small enough to be a short type.

Where the blank is the number is the number you entered.

If the number is too big to be type int, print out

_____ must be type int

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!