// From Prelim 2
// Kiri Wagstaff, wkiri@cs.cornell.edu

public class Problem1
{
   public static int m = 0;

   public static void main(String args[])
   {
			int i = 0;
      for (int j = 1; j <= 3; j++)
      {
         doStuff(5);
      }
      System.out.println("The value of i is " + i + ".");
      System.out.println("The value of m is " + m + ".");
   }

   public static int doStuff(int j)
   {
      int k = 0, i = 0;
      while (k < j)
      {
         i++;
         m++;
         k++;
      }
      System.out.println("Inside doStuff: the value of i is " + i + ".");
      return i/2;
   }
}
