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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 5PP
icon
Related questions
Question
100%

NO COPY PASTE PLZ

 

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 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning