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);
}
}
}
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);
}
}
}
0 komentar:
Posting Komentar