public class GanjilGenap{
static int a = 100;
public static void main(String args[]){
if(a%2 == 0){
System.out.println(a + " adalah bilangan genap");
}else{
System.out.println(a + " adalah bilangan ganjil");
}
}
}



Gambar : Hasil Class

Label : automotive Hotels pimmy ride Phone Cell Property wallpapers Anti Vir car body design

0 komentar:

Posting Komentar

Mari berbagi ilmu disini meski sekedar coretan saja....

http://www.google.com/friendconnect/api/people/ http://www.google.com/friendconnect/api/activities/ http://www.google.com/friendconnect/api/appdata/