Saturday, October 26, 2019



7. DISPLAY REVERSE OF INPUT STRING


DECLARE SUB REV(N$)
CLS
INPUT “ENTERT NAME”;N$
CALL REV (N$)
END

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


No comments:

Post a Comment

beautiful

Covid-19 Pandemic In Nepal

  Covid-19 Pandemic In Nepal Covid-19 Is the world wide pandemic in today's context.Not only Nepal but various country are suffering it....