Computer Science, asked by abhikBRO, 1 year ago

how to print 1 to 10 in reverse order in qbasic

Answers

Answered by hharasudhan539
19

hope it helps

ANSWER in attachment

at the end of the program type

END

Attachments:

abhikBRO: it shows error
hharasudhan539: mark as brailiest answer
hharasudhan539: check it now
hharasudhan539: it is working
Answered by AbhijithPrakash
14
  1. CLS
  2. INPUT "Enter any digit"; n
  3. WHILE n <> 0
  4. r = n MOD 10
  5. s = s * 10 + r
  6. n = n \ 10
  7. WEND
  8. PRINT "Reversed digits is "; s
  9. END

This may work..

you can check the code..



abhikBRO: not this
AbhijithPrakash: THEN??
Similar questions