Computer Science, asked by TheLegend79, 2 months ago

Write this QBasic Program.​

Attachments:

Answers

Answered by reewajojha123
0

Answer:

Cls

a$ = "Welcome"

For i = Len(a$) To 1 Step -1

   Print Left$(a$, i)

Next i

End

Explanation:

First of all Cls to clear the screen
then we declared "Welcome as "a" string
then we made for...next loop
and we used len qbasic function to take the length of "a$"

and we made a loop to go from Len(a$) to 1 using step -1

Then we used Print left$(a$, i ) to decrease one letter at once from "a$"

then next i for the continuation of the loop

and at last End to end the program...

Similar questions