DECLARE FUNCTION REV$ (S$)
CLS
INPUT "ENTER ANY STRING"; S$
P$ = S$
IF P$ = REV$(S$) THEN
PRINT "THE GIVEN WORD IS PALINDROME "
ELSE
PRINT " THE GIVEN NO. IS NOT PALINDROME"
END IF
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 COVID-19 and the cancellation of SEE.
As we know, that this pandemic disease has started from the Wuhan district of China. This viruswvirus discovered out on 31st December 2019 ...
-
As we know, that this pandemic disease has started from the Wuhan district of China. This viruswvirus discovered out on 31st December 2019 ...
-
DECLARE SUB PRIME (N) INPUT "ENTER ANY NUMBER"; N CALL PRIME (N) END SUB PRIME (N) C = 0 FOR I = 1 TO N IF N MOD I = 0 THE...
No comments:
Post a Comment