(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
(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...
Related questions
Question
Problem 25 - Looping Statements
C++
![(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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9de5964c-247f-4faa-b3fa-5410d242dc5a%2F7810c76f-6309-41c7-9d42-9a7a9222d26b%2F2ixmgug_processed.jpeg&w=3840&q=75)
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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F9de5964c-247f-4faa-b3fa-5410d242dc5a%2F7810c76f-6309-41c7-9d42-9a7a9222d26b%2Ft4vwb9j_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage