Asked by Eshlee
How can I put my switch case inside for loop? Please I need a syntax for this or an example.
Answers
Answered by
Steve
which language? That is the first place to start. Each has its own syntactical peculiarities.
There are many code snippets online to look at.
I assume you know how to format a for loop. So, write that out first.
Then, place a switch statement inside the loop.
Google is your friend. Use it.
There are many code snippets online to look at.
I assume you know how to format a for loop. So, write that out first.
Then, place a switch statement inside the loop.
Google is your friend. Use it.
There are no AI answers yet. The ability to request AI answers is coming soon!