destr0y

Lab5_2

Mar 21st, 2020
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var a := new Stack<integer>;
  2. var b := new Stack<integer>;
  3. begin
  4.   for var i := 1 to 6 do
  5.     a.Push(random(-10,20));
  6.  
  7.   foreach var c in a do
  8.     b.Push(c+1);
  9.  
  10.   writeln(a);
  11.  
  12.   writeln(b.Reverse());
  13. end.
Add Comment
Please, Sign In to add comment