   //-----------------------------------------------------------------
   //  Prints integer values from 1 to LIMIT, counting and summing 
	//  odd and even integers.
   //-----------------------------------------------------------------
    public class OddEven
   {
       public static void main (String[] args)
      {
         final int LIMIT = 15;
         int odd = 0, even = 0;
         int oddSum = 0, evenSum = 0;
         for (int count=1; count <= LIMIT; count++)
         {
            System.out.print ("\t" + count + " ");
            if (count % 2 != 0){
               odd++;
               oddSum+=count;
            }
            else {
               even++;
               evenSum+=count;
               
            }
            if (count % 5 == 0)
               System.out.println();                     
         }   
         System.out.println ("\n# Even = " + even + "  Sum = " + evenSum);
         System.out.println ("# Odd  = " + odd + "  Sum = " + oddSum);
      }
   }
