Bilangan Genap Program Java
package bilangangenap; import java.util.Scanner; /** * * @author TOSHIBA */ public class BilanganGenap { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner input = new Scanner(System.in); int bilangan; String nama; System.out.println("------------------------------------------------"); System.out.println("-------------PROGRAM BILANGAN GENAP-------------"); System.out.println("------------------------------------------------"); System.out.print ("Masukkan Nama Anda = "); nama = input.nextLine(); System.out.print ("Masukkan Bilangan Anda = "); bilangan = input.nextInt(); if (*********) { System.out.print ("Nama Anda = " + nama); System.out.println(" Dan Bilangan Anda Genap "); System.out.println("Dengan Nominal = " +bilangan); System.out.println("------------------------------------------------"); System.out.println("---PROGRAM BILANGAN GENAP By Skuy replay -------"); System.out.println("------------------------------------------------"); } else{ System.out.print ("Nama Anda = " + nama); System.out.println("Dan Bilangan Anda Ganjil "); System.out.println("Dengan Nominal = " +bilangan); System.out.println("------------------------------------------------"); System.out.println("---PROGRAM BILANGAN GENAP By Skuy replay -------"); System.out.println("------------------------------------------------"); } } }
Jika Ingin Mendownload Source Code Yang Lebih lengkap Bisa Langsung KLik Link Di Bawah ini
DOWNLOAD SC