how to print 1 to 10 in reverse order in qbasic
Answers
Answered by
19
hope it helps
ANSWER in attachment
at the end of the program type
END
Attachments:
abhikBRO:
it shows error
Answered by
14
- 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
This may work..
you can check the code..
Similar questions
Math,
6 months ago
Science,
6 months ago
Physics,
6 months ago
Science,
1 year ago
CBSE BOARD X,
1 year ago