fork download
  1. program zaznaczanie_licz_parzystych_w_liscie;
  2. type elem=record
  3.  
  4. data: integer;
  5.  
  6. label1: boolean
  7.  
  8. end;
  9.  
  10. tab=array[1..10]of elem;
  11.  
  12. lst = record
  13. elementy: tab;
  14. ile: integer
  15. end;
  16. var
  17. i: integer;
  18. x: lst;
  19.  
  20. begin
  21. readln(x.ile);
  22. for i := 1 to x.ile do
  23. begin
  24. read(x.elementy[i].data);
  25. x.elementy[i].label1 := (x.elementy[i].data mod 2 = 0);
  26. end;
  27.  
  28. for i := 1 to x.ile do
  29. begin
  30. if x.elementy[i].label1 then
  31. writeln(x.elementy[i].data);
  32. end;
  33. end.
Success #stdin #stdout 0.01s 5292KB
stdin
12 
stdout
Standard output is empty