COSC4301                            

// Comments can start with //.

// Second comment line.

/* Here, we will have so amny consecutive comment lines:

    This is the first example program to show you.

    It simply  takes an input integer and prints out the input value and

    it's square over and over again until the input becomes sufficiently large.

*/

 

import java.util.*;

 

public class ReadIn

 {

 public static void main(String args[]) //main method where program execution starts.

   {

   Scanner scan = new Scanner(System.in);

   int a; // declaration

   a = scan.nextInt(); 

     while (a*a<4000000000) // Loop to repeat as long as a*a < 4000000000

     {

     System.out.print ("Input was:::  ");

     // The character string is to be printed

     System.out.println (a);

     System.out.print ("IT'S SQURE IS::: ");

     System.out.println (a*a);

     a = scan.nextInt();

     }         // end of while loop

   }           // end of main() method

}              // end of public class and hence of the program.