import java.util.*;
public class ganjilGenap{
public static void main(String[]args){
Scanner input = new Scanner(System.in);
System.out.print("Masukan angka = ");
float Masukanangka = input.nextFloat();
if (Masukanangka%2==0)
{System.out.println("Genap");}
else if (Masukanangka%2==1)
{System.out.println("Ganjil");}
}
}
By
Ananta
0 komentar:
Posting Komentar