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

Bilangan Genap dari angka 1 s/d 50

Menampilkan bilangan genap dari angka 1 s/d 50 
Jawab:
-                         1. Beri Nilai A = 1
-                         2. Untuk I = 1 samapi 50 lakukan
2.1 Cetak Nilai A
2.2  Jika A mod 2 = 0 , maka nilai A = bilangan genap

uses crt;
var I,A: integer;
begin
A:=1;
 clrscr;
 for I:= 1 to 50 do
begin
if I mod 2= 0 then
write(I:5);
end;
  Readln;
end.

Tidak ada komentar:

Posting Komentar