int x: do { printf('Enter your choice: "); scanf("%d",&x); switch(x) {

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question
Please solve Quickly С++
in program below the do - while loop terminate when
int x;
do
{
printf('Enter your choice: ");
scanf("%d",&x);
switch(x)
{
case 1: printf("1\n");
break;
case 2: printf("2\n");
break;
case 3: printf("Bye");
break;
default: printf("default\n");
}while(. .);
}
a.
X==3
b. x!=3
X<=3
d. x>=3
Transcribed Image Text:in program below the do - while loop terminate when int x; do { printf('Enter your choice: "); scanf("%d",&x); switch(x) { case 1: printf("1\n"); break; case 2: printf("2\n"); break; case 3: printf("Bye"); break; default: printf("default\n"); }while(. .); } a. X==3 b. x!=3 X<=3 d. x>=3
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,