Computer Science, asked by raghunath92331, 11 months ago

Reverse 3 digit number in qbasic

Answers

Answered by ashutosh545
4

Explanation:

Qbasic Program to reverse the given digits

REM Program to reverse the digits

CLS

INPUT "Enter any digit"; n

WHILE n <> 0

r = n MOD 10

s = s * 10 + r

n = n \ 10

WEND

PRINT "Reversed digits is "; s

END

hope this is help ful mark brainliest

Similar questions