public class Interest2
{
  public static void main(String args[])
  {
    double rate, prin;
    int howMany;

    rate = IOStuff.getDoublePrompt("Yearly interest rate as a per-cent:");
    rate = rate / 1200.0;
    howMany = IOStuff.getIntPrompt("How many months:");
    prin = 1.0;

    for(int month = 0; month < howMany; month++)
    {
      prin = prin * (1.0 + rate);
      month++;
      System.out.println("After " + month + " months, the account holds " + prin);
    }

  }
}
