August 2021 0 7 Report
Можно ли так записать программу? var a,a1,a2,a3,a4:integer;
BEGIN
writeln('Введите число');
readln(a);
a1:= a div 1000;
a2:= a div 100 mod 10;
a3:= a div 10 mod 10;
a4:= a mod 10;
if a1>a2
a1>a3
a1>a4
then
begin
writeln('max=',a1);
end;
if a2>a1
a2>a3
a3>a4
then
begin
writeln('max',a2);
end;
if a3>a1
a3>a2
a3>a4
then
begin
writeln('max',a3);
end;
if a4>a1
a4>a2
a4>a3
then
begin
writeln('max',a4);
end;
END.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.