Pascal Örnekleri 02(Case kullanımı)
Pascal'da Case kullanımıyla ilgili bir örnek.
DELPHI:
-
uses crt;
-
var
-
ads:string[20];
-
not1:integer;
-
begin
-
clrscr;
-
readln(ads);
-
readln(not1);
-
write(not1,' ');
-
case not1 of
-
85..100: write('A');
-
70..84: write('B');
-
55..69: write('C');
-
45..54: write('D');
-
0..44: write('E');
-
else
-
writeln('0 ile 100 arasi not giriniz!');
-
end;
-
readln;
-
end.
Yazdır
| 605 Görüntülenme | Kategori: Pascal & Delphi & Delphi.NET |
Geri İzleme
Etiketler: Pascal Örnekleri, turbo pascal, pascal, örnek, caseBenzer Yazılar
Yorum Yap
XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

31 Ekim 2008 |












Henüz yorum yapılmamış.