Monday, September 30, 2019

Palindrome no of string


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

SUB PAL(N$)
FOR I=LEN(N$) TO 1  STEP-1
B$=MID$(N$,I,1)
C$=C$+B$
NEXT I
IF N$=C$ THEN
PRINT"THE GIVEN WORD IS PALINDROME"
ELSE
PRINT"THE GIVEN WORD IS NOT PALINDROME"
END IF
END SUB

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...