var
a:array[1..10] of integer;
i:integer;
begin
for i:=1 to 10 do
read(a[i]);
if a[i]<0 then a[i]=abs(a[i]);
write(a[i]);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var
a:array[1..10] of integer;
i:integer;
begin
for i:=1 to 10 do
read(a[i]);
for i:=1 to 10 do
if a[i]<0 then a[i]=abs(a[i]);
for i:=1 to 10 do
write(a[i]);
end.