Senin, 20 Oktober 2008

Menentukan Bil. Positif or Negatif

Algoritma menentukan bil. posifif or negtif
Deklarasi
x: integer
Deskripsi
read (x)
if (x > 0)
write ("Bil. Positif")
else if (x<0)
write ("Bil. Negatif")
else
write("bil. netral")
endif
~Program dan Output

0 Comment: