📜  带有大 O 计算器的在线编译器 c++ - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:58.344000             🧑  作者: Mango

代码示例6
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);
}
}