int count = 0;
for (int i = 1; i < 6; i++)
{
Console.WriteLine("請(qǐng)輸入{0}場(chǎng)的游戲點(diǎn)擊率", i);
int a = Convert.ToInt32(Console.ReadLine());
if (a > 100)
{
count = count + 1;
}
}
Console.WriteLine("點(diǎn)擊率大于100的游戲數(shù)是{0}", count);
Single b = 0;
b = count * 100 / 5;
Console.WriteLine("點(diǎn)擊率大于100的游戲比率為{0}%", b);
Console.ReadKey();