rayhanf

trf_byReference

Mar 17th, 2023
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.25 KB | Source Code | 0 0
  1. program bootcamp6;
  2. uses crt;
  3.  
  4. procedure kuadrat(angka: integer; var hasil: integer);
  5. begin
  6.     hasil := sqr(angka);
  7. end;
  8.  
  9. var result: integer;
  10. begin
  11.     clrscr;
  12.     write('Hasil dari 5 kuadrat adalah ');
  13.     kuadrat(5, result);
  14.     write(result);
  15.     readkey;
  16. end.
Add Comment
Please, Sign In to add comment