/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tugas05;
import java.util.Scanner;
/**
*
* @author Imamuddin.A.
*/
public class TahunKabisat {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int tahun = 0;
System.out.println(“Masukan Tahun : “);
tahun = input.nextInt();
int thn = tahun % 4;
if (thn == 0){
System.out.println(“Leap Year”);
}else{
System.out.println(“Not Leap Year”);
}
// TODO code application logic here
}
}
Tinggalkan sebuah Komentar
Belum ada komentar.
Komentar RSS Lacak Balik URI Pengenal
