Thursday, October 3, 2019

Display reverse of input string.(SUB)

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

SUB REV$(N$)
FOR I = LEN(N$) TO 1 STEP-1
B$ = MID$(N$,I,1)
C$= C$+B$
NEXT I
PRINT"REVERSE OF STRING";C$
END SUB

No comments:

Post a Comment

Experience of Quarantine and SEE canceled

Our SEE was canceled due to the outbreak of Corona Virus (COVID-19). It's been 3 months since the Nepalese people have been staying home...