INPUT a
INPUT b
INPUT c
INPUT d
IF a<b AND a<c AND a<d THEN PRINT a
IF b<a AND b<c AND b<d THEN PRINT b
IF c<a AND c<b AND c<d THEN PRINT c
IF d<a AND d<b AND d<c THEN PRINT d ELSE PRINT "нет наименьшего"
END
INPUT a
INPUT b
INPUT c
INPUT d
IF a<b AND a<c AND a<d THEN PRINT a
IF b<a AND b<c AND b<d THEN PRINT b
IF c<a AND c<b AND c<d THEN PRINT c
IF d<a AND d<b AND d<c THEN PRINT d ELSE PRINT "нет наименьшего"
END