Advertisement
deced

Untitled

Dec 23rd, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. type
  2. Vec = array [0 .. 2] of Real;
  3.  
  4. const
  5. Arr: Vec = (12, 134, 1);
  6.  
  7. var
  8. I: Byte;
  9. t: Text;
  10.  
  11. begin
  12. assign(t, 'out.pas');
  13. rewrite(t);
  14. Writeln('Одномерный массив: ');
  15. Writeln(t, 'Одномерный массив: ');
  16. for I := 0 to High(Arr) do
  17. begin
  18. Write(Arr[I]:5:2);
  19. Write(t, Arr[I]:5:2);
  20. if (I <> High(Arr)) then
  21. begin
  22. Write(', ');
  23. Write(t, ', ');
  24. end;
  25. end;
  26. Close(t);
  27.  
  28. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement