0

what is answer this question case

Fill in the blanks to test the value of the variable x; if x is 2, print "it's 2" to the screen; otherwise (the default case), print "the default case" to the screen. int x; cin >> x; switch (.....) { case 2: cout << "it's 2" << endl; break; .................: cout << "the default case" << endl; }

28th Nov 2018, 9:36 PM
Ameer Saleh
Ameer Saleh - avatar
7 Answers
+ 4
int x =10; switch (x){ case 10: System.out.println("A"); break; case 20: }
12th Sep 2022, 1:16 AM
Yohander RodrĂ­guez
Yohander RodrĂ­guez - avatar
+ 3
default
28th Nov 2018, 9:45 PM
MatĂșĆĄ Semančík
MatĂșĆĄ Semančík - avatar
+ 2
int x; cin >> x; switch ( x ) { case 2: cout << "it's 2" << endl; break; default : cout << "the default case" << endl; }
20th May 2021, 9:17 AM
Nozim Azamov
Nozim     Azamov - avatar
0
x default
23rd Jun 2019, 1:46 PM
Osama
0
Fill in the blanks to test the value of the variable x; if x is 2, print "it's 2" to the screen; otherwise (the default case), print "the default case" to the screen. int x; cin >> x; switch ( x ) { case 2: cout << "it's 2" << endl; break; default : cout << "the default case" << endl; }
5th Aug 2019, 3:49 AM
Maah Rukh
Maah Rukh - avatar
0
Use logical operators to combine conditional statements and return true or false.contentImageThe AND operator works the following way:contentImage In the AND operator, both operands must be true for the entire expression to be true.
20th Nov 2021, 9:08 AM
Muhammadqodir Mahammadov
Muhammadqodir Mahammadov - avatar
0
Fill in the blanks to test the value of the variable x; if x is 2, print "it's 2" to the screen; otherwise (the default case), print "the default case" to the screen. int x; cin >> x; switch (____) { case 2: cout << "it's 2" << endl; break; ______: cout << "the default case" << endl; }
17th Nov 2022, 7:12 AM
Enzo
Enzo - avatar