7) DISPLAY Reverse of input strings.(sub)

by - October 03, 2019

DECLARE SUB REV$ (N$)
CLS
INPUT "ENTER A STRING "; N$
CALL REV$(N$)
END

SUB REV$ (N$)
FOR I = LEN(N$) TO 1 STEP -1
B$ = MID$( N$,I,1)

NEXT I
PRINT"Reverse strings";C$
END SUB

You May Also Like

0 comments