Untitled

Anonymous
pascal
12/19/2024 3:27 PM
204 B
13
Indexable
var N,x:Integer;

Begin

   x:=0;
   Read(N);

   While N > 0
   do begin
   
   if N mod 10 > x then x:=N;
   N:=N div 10;
   
   end;
   write(x);
end.
Editor is loading...
Leave a Comment