Site icon Pathshala Nepal

Write a program to input a number and print it 10 times using do while loop.

Qbasic
Online Calculator

Write a program to input a number and print it 10 times using do while loop.


1 Answer


CLS

INPUT"ENTER A NUMBER";NUM

C = 1

DO

PRINT NUM

C = C + 1

LOOP WHILE C <= 10

END

 

Topics from Computer
Related Questions