SCREEN 12
INPUT "vvedite kolichestvo stolbcov ", n
DIM a(n)
PRINT "vvedite dannye"
FOR i = 1 TO n
PRINT "stolbec"; i
INPUT "", a(i)
NEXT
max = a(1)
FOR i = 1 TO n
IF a(i) > max THEN max = a(i)
NEXT
k = 300 / max
FOR i = 1 TO n
x = i * 50
y = a(i) * k
LINE (x + 100, 400)-STEP(50, -y), i, BF
NEXT
Тестирование выполнено в программе QB64 ( Скачать )