Question: C# has several control statements that can effect program flow. Decisions are made, and the program goes one way or another. Sometimes, the programmer has
C# has several control statements that can effect program flow. Decisions are made, and the program goes one way or another. Sometimes, the programmer has a choice of several control statements which may accomplish the same thing. Let say, why would you use a while statement rather than a dowhile loop? Are they the same? Justify your response.
C# has a while statement, and a for statement. Both of these can run loops for a definite number of times. Why would you use one or the other? Justify your response.
C# has if else statements as well as the switch multiple selection statement. After reading about both, why might you use the switch statement, rather than the if..else statement? Please be specific.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
