answersLogoWhite

0

In QBasic, you can generate the series 5, 55, 555, 5555, 55555 using a loop. You can start with a variable initialized to 5 and repeatedly multiply it by 10 and add 5 in each iteration. Here's a simple example:

FOR i = 1 TO 5
    num = 0
    FOR j = 1 TO i
        num = num * 10 + 5
    NEXT j
    PRINT num
NEXT i

This code will output the desired series.

User Avatar

AnswerBot

1d ago

What else can I help you with?