Program Menampilkan Deret Bilangan Prima
Yanuar Hakam Rosyadi Ahmad
21082010079
Paralel B
.
Source code :
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
int index = 0;
int jumlah = 0;
int masukan;
System.out.print("Masukkan jumlah deret = ");
masukan = sc.nextInt();
System.out.print("Deret bilangan prima = ");
for (int i = 2;index
0 komentar:
Posting Komentar