Rabu, 10 Oktober 2012
Kelipatan :
public static void main(String[] args) {
// TODO code application logic here
int angka ;
Scanner input = new Scanner (System.in);
System.out.println("Angka : ");
angka = input.nextInt();
if (angka%3==0){
System.out.println("Kelipatan 3");
}else{
System.out.println("Bukan Kelipatan 3");
}}
public static void main(String[] args) {
// TODO code application logic here
int angka ;
Scanner input = new Scanner (System.in);
System.out.println("Angka : ");
angka = input.nextInt();
if (angka%3==0){
System.out.println("Kelipatan 3");
}else{
System.out.println("Bukan Kelipatan 3");
}}
Langganan:
Posting Komentar (Atom)
1 komentar:
pas lagi praktikum mas brooo jadi pusyannngg
Posting Komentar