Write a program in QBASIC to print your name 5 times using for next loop
Answers
Answered by
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
2
Answer:
CLS
FOR I=1 TO 5
PRINT "HELLO! MY NAME IS Brainly Programmer!!"
NEXT I
END
Similar questions