public static void Main()
Console.WriteLine("How many rows?");
int rows = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("How many columns?");
int columns = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("What symbol do you want to use?");
string symbol = Console.ReadLine();
for (int i = 0; i < rows;i++)
for (int j = 0; j < columns; j++)
int[] array = { 9, 1, 8, 2, 7, 3, 6, 4, 5 };
for (int i = 0; i < array.Length; i++)
for (int j = 0; j < array.Length; j++)
if (array[j] > array[j + 1])
string[] cars = {"Mazda", "Ferrari", "Ford"};
for (int i = 0; i < cars.Length; i++)
Console.WriteLine(cars[i]);
foreach (string car in cars)
char x = MyMethod("X", "Y", "Z", 34);
public static char MyMethod(string x, string y, string z, int a)
Console.WriteLine(x + y + z + a);
public static int MyMethod(string x, string y)