Advertisement
rayhanf

procedure_withParam

Mar 16th, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | Source Code | 0 0
  1. program cetak;
  2. uses crt;
  3.  
  4. procedure cetakkarakter(x:char; y:shortint);
  5. var i: shortint;
  6. begin
  7.     for i:=1 to y do
  8.     begin
  9.         write(x);
  10.     end;
  11. end;
  12.  
  13. var kar: char; i: shortint;
  14. begin
  15.     clrscr;
  16.     cetakkarakter('#', 5);
  17.     writeln;
  18.     kar := '$';
  19.     i := 10;
  20.     cetakkarakter(kar, i);
  21.     readln;
  22. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement