pascal

by pif on November 28th, 2009
No notes
Syntax: Pascal
Show lines - Hide lines - Show in textbox - Download
program pivooo;
 
var
  k,i:integer;
  s:string;
 
begin
  readln(s);
  k:=length(s);
  if k>5 then
    s:=Copy(s,0,5)
  else
     begin
       for i:=5 downto k+1 do s:=s+'k';
     end;
  writeln(s);
end.

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS