Pascal ile son iki hanenin faktoriyelini almak

program Son2faktoriyel;
uses crt;
var
i, OkulNumaran:integer;
faktoriyel:real;
begin
clrscr;
write('Okul numaranizi girin? //Ornek:1903');
readln(OkulNumaran);
OkulNumaran:= OkulNumaran mod 100 ;
faktoriyel:=1;
for i:=1 to OkulNumaran do faktoriyel:=faktoriyel*i;
write(OkulNumaran,'! sonucu:',faktoriyel:2:0);
readkey;
end.

Yorum yapın

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 / Değiştir )

Twitter picture

You are commenting using your Twitter account. Log Out / Değiştir )

Facebook photo

You are commenting using your Facebook account. Log Out / Değiştir )

Connecting to %s