strcat.pp 350 B

1234567891011121314151617181920
  1. { String Concatenation }
  2. program strcat;
  3. uses SysUtils;
  4. var
  5. NUM, i : longint;
  6. str : string;
  7. begin
  8. if ParamCount = 0 then NUM := 1
  9. else NUM := StrToInt(ParamStr(1));
  10. if NUM < 1 then NUM := 1;
  11. str := '';
  12. For i := 1 To NUM Do
  13. str := str + 'hello'#13;
  14. WriteLn( Longint(Length(str)) );
  15. WriteLn( str );
  16. end.