Computer Science, asked by akshra062009, 3 months ago

Write a Qbasic program to print your name 10 times.​

Answers

Answered by anindyaadhikari13
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:

  1. Line 10: Clears the screen.
  2. Line 20: Iterate a loop ten times as name must be displayed 10 times.
  3. Line 30: Displays the name. (Here, I wrote my username.)
  4. Line 40: End of loop.
  5. Line 50: End of program.

See the attachment for output.

Attachments:
Similar questions