SHARE
TWEET

Latihan 9 Free Pascal Console

stevennathaniel Jan 2nd, 2014 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. program Latihan9;
  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.   x, i : Integer;
  16. begin
  17.  
  18.   write('Mohon masukan sebuah angka: ');
  19.  
  20.   readln(x);
  21.  
  22.   for i := 12 downto 1 do
  23.  
  24.   writeln(x, ' * ', i, ' = ', x * i);
  25.  
  26.   writeln('Tekanlah tombol ENTER untuk menutup');
  27.   readln;
  28.  
  29. end.
RAW Paste Data
Top