The first executable statement in the program is a printf, requesting the user to enter an integer number. This is known as "prompt message" and appears on the screen like Enter an integer number As soon as the user types in an integer number, the computer proceeds to compare the value with 100. If the value typed in is less than 100, then a message Your number is smaller than 100 is printed on the screen. Otherwise, the message Your number contains more than two digits is printed.

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

The first executable statement in the program is a printf, requesting the user to enter an integer
number. This is known as "prompt message" and appears on the screen like
Enter an integer number
As soon as the user types in an integer number, the computer proceeds to compare the value
with 100. If the value typed in is less than 100, then a message
Your number is smaller than 100
is printed on the screen. Otherwise, the message

Your number contains more than two digits
is printed.

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT