The coordinate of the point x is entered from the keyboard, the program displays the answer

The coordinate of the point x is entered from the keyboard, the program displays the answer whether the point belongs to the segment from 20 to 40

Program prinadlezhnost;
var x: integer;
begin
writeln (‘enter the x coordinate of the point’);
readln (x);
if (20 <= x) and (40> = x) then
writeln (‘the coordinate belongs to the segment’)
else writeln (‘coordinate does not belong to segment’)
end.
(Program tested in PascalABC)



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.