P. 1
Flowchart Bilangan Prima

Flowchart Bilangan Prima

|Views: 301|Likes:
Dipublikasikan oleh freaksmj

More info:

Published by: freaksmj on Oct 09, 2011
Hak Cipta:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/14/2015

pdf

text

original

Muhammad Jihad 5210105011 Flowchart Bilangan Prima

Y

N

Y

N

Y

N

util. } else if (n == 1) { System.err. a*a <= n. int n.exit(0).Muhammad Jihad 5210105011 Source Code : import java.exit(0).in). System.println(n + " Bilangan Komposit "). if (n <= 0) { System.nextInt(). } for (a = 2. a++) { if (n % a == 0) { prime = false.out.println("1 Bukan Bilangan Prima atau Komposit").out.println("Masukkan Bilangan :"). /** * * @author FreaksMJ / MUHAMMAD JIHAD / 5210105011 */ public class primeornot { public static void main(String[] args) { Scanner input = new Scanner(System. System. } else { System. a.out. } } if (prime) { System.println(n + " Bilangan Prima ").Scanner.println("Input Hanya Positive Integer"). boolean prime = true. System. } } } . n = input.err.

You're Reading a Free Preview

Mengunduh
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->