Write out what the program will print to the screen in this column Please note t
ID: 3830585 • Letter: W
Question
Write out what the program will print to the screen in this column Please note that this code compiles, runs and terminates public static void Main (strings[] args) {int num = 18; Console. WriteLine("START: [0]", num); switch (num)//the opening {'s are oddly {case 19://placed, but legal Console.WriteLine ("Location A"); break; case 17: case 16: Console.WriteLine("Location B"); break; case 15: Console.WriteLine("Location C"); break; default: Console.WriteLine("Location D"); break;} num = 0; for (int i = -1; iExplanation / Answer
START : 18
Location D
-1
0
After for: 2
Next : 10
Next : 20
After do-while: 40
i : 16
i : 17
i : 18
At the end: 19
Thanks, let me know if there is any concern.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.