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