Построить график функции в qbasic? y=ax+b a=3,b=1 вот программа,но надо составить немного клеточек. 20 screen 12 30 view (10, , 300), , 3 40 window (-10, , -10) 50 for x = -10 to 10 60 line (x, -, 10), 7 70 line (-10, , x), 7 80 next x 90 line (-10, , 0), 5 100 line (0, -, 10), 5 101 for x = -10 to 10 step 0.1 102 pset (x, 3*x +1), 10 103 next x 104 end
VIEW (10, 10)-(300, 300), , 3
WINDOW (-10, 10)-(10, -10)
LINE (-10, 0)-(10, 0), 5
LINE (0, -10)-(0, 10), 5
FOR x = -10 TO 10 STEP 0.01
PSET (x, 3 * x + 1), 10
NEXT x
END