make a 1 times and 2 times table with c# 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();