string z;
int[] array1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int x = 0;
foreach (int n1 in array1)
{
while (x < 9)
{
x++;
z = n1.ToString() + " * " + x.ToString() + " = " + n1 * x;
textBox1.Text += z + Environment.NewLine;
}
x = 0;
}
全站熱搜
string z;
int[] array1 = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int x = 0;
foreach (int n1 in array1)
{
while (x < 9)
{
x++;
z = n1.ToString() + " * " + x.ToString() + " = " + n1 * x;
textBox1.Text += z + Environment.NewLine;
}
x = 0;
}
留言列表