4 Nisan 2008 Cuma

Alan ve çevre hesaplama

Var

r,s:integer;

Begin

write ('YARI ÇAP GİRİNİZ'); readln (r);

writeln ('MENÜ');

writeln ('1-ALAN');

writeln ('2-ÇEVRE);

write ('seçiminizi giriniz='); readln (s);

if s=1 then write ('Alan=',3.14*r*r);

if s=2 then write ('Çevre=',3.14*2*r);

readln;

End.

Hiç yorum yok: