Question: C# 1- Write a C# code segment that has a nested for loop. The statement in the inner loop displays a single asterisk using Console.Write.
C#
1- Write a C# code segment that has a nested for loop. The statement in the inner loop displays a single asterisk using Console.Write. Just after the inner loop, inside the outer loop, use Console.WriteLine to go to a new line. The inner loop continuation condition should be controlled in such a way that one asterisk is displayed during the first pass of the outer loop, two asterisks during the second pass, etc. The output of the code segment will look like this:
* ** *** **** *****
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
