Thursday, March 2, 2017

KEREN GAN ! Cara menentukan bilangan prima di Java NetBeans

                                       
netbeans dk
Hasil gambar untuk bilangan prima java

Pertama buka software NetBeans Kalian

lalu masukan import java.util.Scanner; dibawah package condiional;



lalu copy dari Scanner masukan=new Scanner(System.in); dst nya. dibawah public static






package conditional;

import java.util.Scanner;

public class bilanganPrima {
public static void main(String[] args){
Scanner masukan=new Scanner(System.in);
System.out.println("masukkan bilangan :");
int x=masukan.nextInt();
int temp=0;
for (int i=1;i



Selamat Mencoba

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home