Question: TASK 1 Convert the code in Figure 1 into switch statement. string age; int newage; Console.WriteLine ( Enter age : ) ; age
TASK
Convert the code in Figure into switch statement.
string age;
int newage;
Console.WriteLineEnter age : ;
age Console.ReadLine;
newage Convert.ToIntage;
ifnewage
Console.WriteLineYou are child";
else ifnewage && newage
Console.WriteLineYou are teenager";
else if newage && newage
Console.WriteLineYou are adult";
else
Console.WriteLineYou are senior";
Figure
Plz answer this question ASAP i really need itThank you so much for help me
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
