Monday, September 30, 2019

DISPLAY REVERSE OF INOUT STRING(SUB)

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

SUB REV(N$)
FOR I=LEN(N$) TO 1STEP -1
B$=MID$(N$,I,1)
C$=C$+B$
NEXT I
PRINT"REVERSED WORD I";C$
ENDSUB

No comments:

Post a Comment

Experience of covid-19 and cancelling SEE exam

A dangers virus called corona also know as COVID-19 took place around the world. This virus was first found in Wuhan china.this virus start...