(Inactive C:\TCWIN\BIN\NONAMEO0. EXE) Enter a number between 1 and 9 >-1 Sorry your number is not between 1 and 9 Enter a number between 1 and 9 >12 Sorry your number is not between 1 and 9 Enter a number between 1 and 9 >5 (Inactive C:\TCWIN\BIN\NONAME... O X Enter a number between 1 and 9 >8 1 22 3 3 1 4 22 3 3 4 4 7 7 55555 88888888 (Inactive C:\TCWIN\BIN\NONAME... I (Inactive C:ITCWIN\BIN\NONAME... Enter a number between 1 and 9 >1 AEnter a number between 1 and9 >2 - 1 1 22 (Inactive C:\TCWIN\BININONAM.. Enter a number between 1 and 9 >3 1 22 333

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 15E: (Program) Write a program to simulate the rolling of two dice. If the total of the two dice is 7 or...
icon
Related questions
Question

Problem 25 - Looping Statements

C++ program pls

(Inactive C:\TCWIN\BIN\NONAME00. EXE)
Enter a number between 1 and 9 >-1
Sorry your number is not between 1 and 9
Enter a number between 1 and 9 >12
Sorry your number is not between 1 and 9
Enter a number between 1 and 9 >5
(Inactive C:\TCWIN\BIN\NONAME...
Enter a number between 1 and 9 >8
1
22
3 3
1
4
4
22
3 3
6
4
7
7
55555
88888888
I (Inactive C:\TCWIN\BINNONAME...
Enter a number between 1 and 9 >2
(Inactive C:\TCWIN\BIN\NONAME...
Enter a number between 1 and 9 >1
1
1
22
(Inactive C:\TCWIN\BIN\NONAM...
Enter a number between 1 and 9 >3
1
22
333
Transcribed Image Text:(Inactive C:\TCWIN\BIN\NONAME00. EXE) Enter a number between 1 and 9 >-1 Sorry your number is not between 1 and 9 Enter a number between 1 and 9 >12 Sorry your number is not between 1 and 9 Enter a number between 1 and 9 >5 (Inactive C:\TCWIN\BIN\NONAME... Enter a number between 1 and 9 >8 1 22 3 3 1 4 4 22 3 3 6 4 7 7 55555 88888888 I (Inactive C:\TCWIN\BINNONAME... Enter a number between 1 and 9 >2 (Inactive C:\TCWIN\BIN\NONAME... Enter a number between 1 and 9 >1 1 1 22 (Inactive C:\TCWIN\BIN\NONAM... Enter a number between 1 and 9 >3 1 22 333
Write a program that asks the user to enter an integer number between 1 and 9 (inclusive). Use do-while
loop to validate the user input. Then your program will print the pattern shown below. This pattern
depends on the value typed by the user. Sample runs below show how this pattern is printed.
Transcribed Image Text:Write a program that asks the user to enter an integer number between 1 and 9 (inclusive). Use do-while loop to validate the user input. Then your program will print the pattern shown below. This pattern depends on the value typed by the user. Sample runs below show how this pattern is printed.
Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar 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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage