jump to navigation

Deret Bilangan Prima November 29, 2011

Posted by kelompok24itbseamolecb5 in Algoritma dan Struktur Data.
trackback

Algoritma Deret Bilangan Prima

Deklarasi (Kamus) :

I,k,j:integer

Prima:string

 

Deskripsi :

i <- 1; i <= 100 ; i++;

if (i mod 2 )  {hasil tidak sama dengan 0}

j <- 2; j <= 1 ; j++;

if ( j mod i )   {hasil tidak sama dengan 0 }

prima = j ;

k = 2 ; k<=  3 do ++

write ( “Bilangan Prima “, Prima )   {menampilkan bilangan prima}

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: