DECLARE FUNCTION REV$ (S$)
CLS
INPUT "ENTER ANY STRING"; S$
PRINT "PALINDROME WORD IS ";REV$(S$)
END
FUNCTION REV$ (S$)
FOR I = LEN(S$) TO 1 STEP -1
B$ = MID$(S$, I, 1)
W$ = W$ + B$
NEXT I
REV$ = W$
END FUNCTION
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...
-
Aadhi Ko Manoram Nitrya On 9th May, 2019 (Baishak 26,2076) Thursday. Our school took us to show the drama in Batisputali. Everyone w...
-
QBasic program 1. WAP to input any number and check whether the given no. Is divisible by 3 and 7 or not using function procedure. ...
-
QBASIC CLS A = 1 B = 1 FOR I = 1 TO 15 PRINT A C = A + B A = B B = C NEXT I END
No comments:
Post a Comment