Wednesday, April 3, 2013

contoh "do-while"


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

package tugas;

/**
 *
 * @author surur
 */
public class dowhile {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int a=1;
        do{
            System.out.println(a+"\tSyifaus Surur");
            a++;
        }while(a<=1000);
        }
    }


No comments:

Post a Comment