Computer Science, asked by virajsharma1956, 3 months ago

Write a program in QBASIC to print your name 5 times using for next loop​

Answers

Answered by anindyaadhikari13
3

Answer:

The given cσde is written in QBASIC.

CLS

FOR I = 1 TO 5

   PRINT "My name is - XYZ"

NEXT I

END

Logic:

  • Create a loop that iterates 5 times.
  • Using a print statement inside the loop, display the name.

See the attachment for output.

•••♪

Attachments:
Answered by BrainlyProgrammer
2

Answer:

CLS

FOR I=1 TO 5

PRINT "HELLO! MY NAME IS Brainly Programmer!!"

NEXT I

END

Similar questions