📅  最后修改于: 2022-03-11 14:44:58.344000             🧑  作者: Mango
for(int i = 0; i < N-1; i++)
{
if (data[i] >= 0) //Assume always true
{
Count(i,N);
Display();
}
else
{
Console.Write(“Wrong input”);
data[i] = 0;
}
}
public void Count(int first, int second)
{
hasil = first * second;
data[first] = hasil;
}
public void Display()
{
for(int y=0; y < N; y++)
{
Console.Write(data[i]);
Console.Write(hasil);
}
}