/**
* @(#)bulan.java
*
*
* @author
* @version 1.00 2014/5/13
*/
import java.util.Scanner;
public class bulan {
public static void main (String[] args){
String haribulan[][]=
{{"31","29","31","30","31","30","31","31","30","31","30","31"},
{"JAN","FEB","MAR","APR","MEI","JUN","JUL","AGUS","SEP","OKT","NOV","DES"}};
int a;
System.out.print("Inputkan nilai : ");
a=new Scanner(System.in).nextInt();
System.out.println( haribulan[1][a] +"
mempunyai " +haribulan[0][a] + " Hari");
}
}
0 komentar:
Posting Komentar