Add Pascal learning files

This commit is contained in:
2025-11-20 21:18:32 +02:00
parent 1ce193cc0d
commit 258f24570a
37 changed files with 587 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
var
n: integer;
a: array[byte] of byte;
i, j: byte;
begin
i := 1;
readln(n);
while n > 0 do
begin
a[i] := n mod 10;
inc(i);
n := n div 10;
end;
j := i - 1;
for i := j downto 1 do
writeln(a[i]);
end.