//The SquaresCubesTable program prints a table containing the integers from 1 to 25 
//and their squares and cubes (using two methods of the respective names to do so).

import java.io.*;

class SquaresCubesTable {
   public static void main (String[] args) throws IOException {
   System.out.println("Number\tSquare\tCube");

   for (int number=1; number<=25; number++)
        {        
        System.out.println(number + "\t " + (square(number)) + "\t " + (cube(number)));     
        }

    }//main

//method square accepts an integer value and returns the square of that integer

    static int square(int number)
        {
	    return (number*number);
        } //method square

//method cube accepts an integer value and returns the cube of that integer

    static int cube(int number)
        {
	    return (number*number*number);
        }//method cube

	
}//SquaresCubesTable class
