QBASIC homework assistance; again!
Posted: Sun Apr 01, 2012 3:49 pm
OK, any help with this one
Write a program that will produce the following output by using the LEFT$ function.
O
ON
ONO
ONOM
ONOMA
ONOMAT
ONOMATO
ONOMATOP
ONOMATOPO
ONOMATOPOE
ONOMATOPOEI
ONONMATOPOEIA
This is waht I came up with (below) but I get a mismatch error on the first X and I have no clue why or what it means
CLS
x = "ONONMATOPOEIA"
i = 1
DO UNTIL i = 13
Print Left$(x,i)
Print
i = i+1
LOOP
End
Thanks everyone
Write a program that will produce the following output by using the LEFT$ function.
O
ON
ONO
ONOM
ONOMA
ONOMAT
ONOMATO
ONOMATOP
ONOMATOPO
ONOMATOPOE
ONOMATOPOEI
ONONMATOPOEIA
This is waht I came up with (below) but I get a mismatch error on the first X and I have no clue why or what it means
CLS
x = "ONONMATOPOEIA"
i = 1
DO UNTIL i = 13
Print Left$(x,i)
i = i+1
LOOP
End
Thanks everyone