whileloop 4-3

posted Feb 1, 2014, 8:50 AM by dldar masud   [ updated Feb 1, 2014, 9:48 AM by Karwan Jacksi ]


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

//This program demonstrates the while loop.

package whileloop;


public class WhileLoop {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        int number = 1;

      while (number <=5)
      {
       System.out.println("Hello");
        number++;
      }
      
      System.out.println("That's all ! " );

    }
}

ċ
WhileLoop.java
(1k)
Karwan Jacksi,
Feb 1, 2014, 8:50 AM
Comments