Егер X>Y  болса,  S айнымалысына   X-тің мәнін   меншікте , әйтпесе  S айнымалысына  1 меншіктеу керек:

1 if x>y then S:=x; if x<=y then S:=1;
2 if x>y then max :=x; if  x<=y  then max :=y; writeln(max);
3 S:=3; if x=y then   S:=x; if  x=y then S:=y;
4 if x=y  then write   (x); if x,> y then write (y);
5 if x <> then write  (x); if x=y then write (y).