Advertisement
rayhanf

latihan

Mar 17th, 2023
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.31 KB | Source Code | 0 0
  1. program segitigaPascal;
  2. uses crt;
  3.  
  4. procedure pascal(...: shortint);
  5. ...
  6. begin
  7.   for ... := 0 to ...-1 do begin
  8.         ....
  9.     for j := 0 to i do begin
  10.             write(c, ' ');
  11.             ....
  12.         end;
  13.   end;
  14. end;
  15.  
  16. var n: ...;
  17. begin
  18.   write('Masukkan jumlah baris segitiga pascal: '); readln(n);
  19.   pascal(n);
  20.     readkey;
  21. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement