SHARE
TWEET

Latihan 13 Free Pascal Console

stevennathaniel Jan 3rd, 2014 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. program Latihan13;
  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.   Num: Integer;
  16. begin
  17.  
  18.   write('Input a number: ');
  19.  
  20.   readln(Num);
  21.  
  22.   while Num > 0 do
  23.  
  24. begin
  25.  
  26.   write('From inside loop: Input a number: ');
  27.  
  28.   readln(Num);
  29.  
  30.   end;
  31.  
  32.   write('Silahkan menekan tombol ENTER untuk menutup aplikasi');
  33.  
  34.   readln;
  35.  
  36.  
  37. end.
RAW Paste Data
Top