Question 30 Using the snippet of code below, what time is it? hour = 11; if (hour <= 10) { message = "Time for breakf
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 30 Using the snippet of code below, what time is it? hour = 11; if (hour <= 10) { message = "Time for breakf
Question 30 Using the snippet of code below, what time is it? hour = 11; if (hour <= 10) { message = "Time for breakfast."; } else if (hour <= 14) { message = "Time for lunch."; } else if (hour <= 20){ message = "Time for dinner."; } else { message = "Time for a snack."; } O Time for a snack. O Time for breakfast. Time for dinner. Time for lunch.