Write a Qbasic program to print your name 10 times.
Answers
Answered by
9
Answer:
This is the required QBASIC program for the question.
10 CLS
20 FOR I=1 TO 10
30 PRINT "My name is anindyaadhikari13"
40 NEXT I
50 END
Explanation:
- Line 10: Clears the screen.
- Line 20: Iterate a loop ten times as name must be displayed 10 times.
- Line 30: Displays the name. (Here, I wrote my username.)
- Line 40: End of loop.
- Line 50: End of program.
See the attachment for output.
Attachments:
Similar questions