✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Given the following code, identify the day that will be printed if day is 5.
void main() {
int day = 5;
switch (day) {
case 1:
print("Monday");
break;
case 2:
print("Tuesday");
break;
case 3:
print("Wednesday");
break;
case 4:
print("Thursday");
break;
case 5:
print("Friday");
break;
default:
print("Invalid day");
}
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!