filem

Watch Free Online Live Dragon Ball Season Episode Saga Watch Free Online Live Dragon Ball Z Season Episode Saga Watch Free Online Live Dragon Ball GT Season Episode Saga Watch Free Online Live Case Closed Season Episodes Watch Free Online Live Pokemon Season Episodes Watch Free Online Live One Piece Season Episodes Watch Free Online Live Naruto Season Episodes

Kamis, 28 Oktober 2010

Pemograman pascal : bilangan ganjil 1-100

Menampilkan bilangan ganjil dari angka 1 s/d 100 
    1. Beri Nilai A = 2.
    2. Untuk  I = 1 sampai 100 lakuka 
        2.1  Cetak Nilai A
        2.2 Jika A mod 2 = 1 , maka nilai A = bilangan ganjil
uses crt;
var I,A: integer;
begin
 A:=1;
 clrscr;
     for I:= 1 to 100 do
     begin
     if I mod 2= 1 then
     write(I:5);
   end;
     Readln;
 end.

Tidak ada komentar:

Posting Komentar