 
                 
                InterviewSolution
 Saved Bookmarks
    				| 1. | Wap to accept your name and print in 10 times using qbasic | 
| Answer» en problem is solved using language - QBASIC.1. Using for loop.CLS INPUT "Enter your name: "; A$ FOR I = 1 TO 10 PRINT A$ NEXT I END2. Using while loop.CLS INPUT "Enter your name: "; A$ I = 1 WHILE I <= 10 PRINT A$ I = I + 1 WEND END3. Using do-while loop.CLS INPUT "Enter your name: "; A$ I = 1 DO PRINT A$ I = I + 1 LOOP WHILE I <= 10 ENDThe question asked is very simple. We have to take the name of the USER as input. Then we will iterate a loop 10 times. The print statement is included in loop so that the name is displayed ten times.See attachment for OUTPUT. | |