好說好說~解法還有多種~
端看原po敢用哪一種去交作業

我用
int c = int.Parse(Console.ReadLine());
Console.WriteLine("您目前年齡= " + c + "歲");
Console.ReadLine();
for (int q = 0; q < c; q += 5)
{
if (q < 40)
Console.WriteLine(new string('@', q / 5 + 1));
else
Console.WriteLine(new string('@', 8) + new string('*', (q - 40) / 5 + 1));
}
Console.ReadLine();
因為你給我的
是在輸入50的情況下
但是我只的50 是我假設的
輸入的數字 要由使用者設定
所以我就自己 改成這樣嚕= ="