KEREN GAN ! Cara menentukan bilangan prima di Java NetBeans
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: Windows
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home