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
Subscribe to:
Post Comments (Atom)
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...
-
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...
-
DECLARE FUNCTION ERA(A$) CLS INPUT"ENTER ANY STRING";A$ PRINT"STRING WITHOUT VOWELS =";ERA(A$) END FUNCTION ERA(A$) B$=U...
-
DECLARE FUNCTION CONVERT (F) CLS INPUT “ENTER TEMPERATURE IN FAHRENHEIT”; F PRINT “TEMPERATURE IN CELSIUS=”; CONVERT (F) END FU...
No comments:
Post a Comment