using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[,] arr1 =new int[10,10];
for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= 9; j++)
{
arr1[i, j] = i * j;
}
}
for (int a = 1; a <= 9; a++)
{
for (int b = 1; b <= 9; b++)
{
Console.WriteLine(a + "*" + b + "=" + arr1[a, b]);
}
}
沒有留言:
張貼留言