using System;
public class Program
{
public static void Main()
// Example with nested loops. The nested loop will print a square.
for(int i = 1; i <= 10; i++) // Outer loop runs 10 times.
for(int j = 1; j <= 10; j++) // Inner loop runs 10 times for each cicle of the outer loop, for a total of 100
Console.Write("* ");
}
Console.WriteLine();
// Example 2. Creates a diagonal pattern with *.
for(int i = 1; i <= 10; i++)
for(int j = 1; j <= 10; j++)
if(i % 2 != 0)
else
Console.Write(" *");