Question: Write a C# console application that will display a menu: 1 ) Square 2 ) Rectangle 3 ) triangle Then wait for user input if

Write a C# console application
that will display a menu:
1)Square
2)Rectangle
3) triangle
Then wait for user input if they input a value other than 12 or 3 display a error message.
If they do enter a 12 or 3 display the shape using Console.writeLine() show the shape using *
I suggest writing the shapes in notepad first.
Use loops and counters
for(int line =1; line <10; line++)
{
string output ="";
for(int index =1; index<10; index++)
{
output +="*";
}
System.Console.WriteLine(output);
}To do the shapes I suggest a nested loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!