Advertisement
rayhanf

varscope1

Mar 17th, 2023
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.20 KB | Source Code | 0 0
  1. program varscope1;
  2. uses crt;
  3. var a, b, c: integer; // global
  4.  
  5. procedure proc1;
  6. var a, b: integer;
  7. begin
  8.     writeln(a, b, c);
  9. end;
  10.  
  11. begin
  12.     clrscr;
  13.     a:=2; b:=9; c:=6;
  14.     proc1;
  15.     readkey;
  16. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement