CLS PRINT "Otrezok [a,b]:" INPUT " a = ", a INPUT " b = ", b INPUT "Shag = ", h FOR x = a TO b STEP h IF (-1 <= x) AND (x <= 1) THEN PRINT "y("; x; ") = "; 1 / x + SIN(x * x) ELSE PRINT "y("; x; ") = "; x + 1 / (x * x) END IF NEXT x END
15:
CLS PRINT "Otrezok [a,b]:" INPUT " a = ", a INPUT " b = ", b INPUT "Shag = ", h FOR x = a TO b STEP h IF (-1 <= x) AND (x <= 1) THEN PRINT "y("; x; ") = "; 1 / (x * x) + 1 ELSE PRINT "y("; x; ") = "; x - 5 END IF NEXT x END