stevennathaniel

Latihan 24 Free Pascal Console

Jan 16th, 2014
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.37 KB | None | 0 0
  1. program Latihan24;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. uses
  6.   {$IFDEF UNIX}{$IFDEF UseCThreads}
  7.   cthreads,
  8.   {$ENDIF}{$ENDIF}
  9.   Classes
  10.   { you can add units after this };
  11.  
  12.  
  13. var
  14.  
  15.   Line: string;
  16.   Part: string;
  17.  
  18. begin
  19.  
  20.   Line:='Hello World';
  21.  
  22.   Part:=Copy(Line, 5, 5);
  23.  
  24.   writeln(Part);
  25.  
  26.   writeln('Tekanlah tombol ENTER untuk menutup');
  27.  
  28.   readln;
  29.  
  30.  
  31.  
  32.  
  33.  
  34. end.
Add Comment
Please, Sign In to add comment