Jumat, 21 Oktober 2011

Class Bulan

public class Bulan1
{
public static void main (String args[])
{
int hari []={
31,28,31,30,31,30,30,31,30,31,30,31
};
String bulan[]=
{"January","February","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"};
for (int i=0;i<12;i++)
System.out.println("Bulan " +bulan[i]+" = "+hari[i]+ " hari ");
}
}

Tidak ada komentar:

Posting Komentar