Advertisement
destr0y

Lab6_1

Mar 21st, 2020
1,204
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var a := new Queue<integer>;
  2. begin
  3.   for var i := 1 to 10 do
  4.     a.Enqueue(random(-10,20));
  5.  
  6.   writeln(a);
  7.  
  8.   for var i := 1 to 5 do
  9.     a.Dequeue();
  10.  
  11.   writeln(a);
  12.  
  13.   var c: integer;
  14.   readln(c);
  15.   writeln(c in a);
  16. end.
Advertisement
RAW Paste Data Copied
Advertisement