pascalabcnet/InstallerSamples/!Tutorial/01_First/Assign2.pas
2025-10-14 21:21:47 +03:00

10 lines
348 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Перемена местами значений двух переменных с использованием третьей
begin
var (x,y) := ReadReal2('Введите x,y:');
var v: real; // вспомогательная переменная
v := x;
x := y;
y := v;
Println($'Новые значения x,y: {x} {y}');
end.