using System;
class Program
{
static void Main()
{
for (int i = 1; i <= 3; i++)
{
Console.WriteLine("Table {0}", i);
for (int j = 1; j <= 5; j++)
{
Console.WriteLine("{0} * {1} = {2}", i, j, i * j);
}
}
Console.ReadKey();
}
}
|
Class Program
Private Shared Sub Main()
For i As Integer = 1 To 3
Console.WriteLine("Table {0}", i)
For j As Integer = 1 To 5
Console.WriteLine("{0} * {1} = {2}", i, j, i * j)
Next
Next
Console.ReadKey()
End Sub
End Class
|