public static void Main()
double Principal_Invested=0;
double Interest_Rate_of_Fund=0;
Console.WriteLine("Millionaire");
Console.WriteLine("How much would you like to invest?");
if (Principal_Invested>0){
Principal_Invested = Convert.ToInt32(Console.ReadLine());}
Console.WriteLine("What is your investment rate?(Must be positive)");
if (Interest_Rate_of_Fund>0){
Interest_Rate_of_Fund = Convert.ToInt32(Console.ReadLine());}
Balance=Principal_Invested;
Interest=Balance*(Interest_Rate_of_Fund/100);
Balance=Balance+Interest;
while(Balance<TargetBalance);
Console.WriteLine("It will take {0} years to make 1 million dollars.",Year-1);