using System;
public class Program
{
public static void Main()
int year = 0;
double amount = 10000;
int multiple = 0;
double temp =0;
Console.WriteLine("請輸入獲利倍數:");
multiple = int.Parse(Console.ReadLine());
//temp = amount / 10000;
while(temp <= multiple){
amount = amount * 1.5;
year = year+1;
Console.WriteLine("第 " + year + " 年 "+ amount);
temp = amount / 10000;
}
Console.WriteLine("需要投資 "+year+" 年");