Sabtu, 13 April 2013

Contoh Pemrogaman Java dengan Logika FOR

Langsung aja sob
ini contoh menentukan bilangan Genap dengan logika for
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BilGenap;

/**
 *
 * @author Khoiril
 */
public class bilGenapFor {
    public static void main(String[]args){
        for (int i=1;i<=20;i++){
         
            i=i+1;
            System.out.println(""+i);
           
        }
    }
}
 
Share:

0 komentar:

Posting Komentar

Diberdayakan oleh Blogger.

Archive

Labels

My Motto

Labels

Blogger templates