program tamsayilar;
uses crt;
var
b,eb,a:integer;
begin
clrscr;
eb:=0;
gotoxy(16,9);write('Sayy Giriver==>');
readln(a);
while(a<>0) do begin
b:=a-trunc(a/10)*10;
if (eb<b) then eb:=b;
a:=trunc(a/10);
end;
gotoxy(17,15); writeln('en byk=',eb);readln;
end.
Akdeniz Üniversitesi
ferhat adsız
ferhatadsiz@hotmail.com