c# loop 2 time tables code example
Example: c# loop 2 time tables
for (int i = 1; i <= 10; i++)
{
for (int j = 2; ;)
{
Console.WriteLine($"{j} x {i} = {i * j}");
break;
}
}
Console.ReadLine();
for (int i = 1; i <= 10; i++)
{
for (int j = 2; ;)
{
Console.WriteLine($"{j} x {i} = {i * j}");
break;
}
}
Console.ReadLine();