Question: Question 5 1 pts Use the code below to answer this question. int id - 0 ; cout < < ID: ; cin

Question 51 pts
Use the code below to answer this question.
int id -0;
cout <<"ID: ";
cin >> id;
if (id ==1)
cout << "Janet";
else if (id ==2|| id ==3)
cout << "Mark";
else if (id ==4)
cout << "Jerry";
else
cout << "Sue";
//end if
What will the above code display when the id varible contains the number 4?
Group of answer choices
Janet
Jerry
Mark
Sue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!