Q BASIC PROGRAM TO CHECK WHETHER THE GIVEN WORD IS PALINDROME OR NOT. FUNCTION
DECLARE FUNCTION PAL$(N$)
CLS
INPUT "ENTER ANY WORD";N$
P=PAL$(N$)
P=N THEN
PRINT "PALINDROME WORD"
ELSE
PRINT "NOT PALINDROME NUMBER"
END IF
END
FUNCTION PAL$(N$)
FOR I = LEN(N$) TO 1 STEP -1
B$=MID$(N$,I,1)
C$=C$+B$
NEXT I
PAL$=C$
END FUNCTION
Search This Blog
Wikipedia
Search results
Subscribe to:
Post Comments (Atom)
Journey of Jagat Mandir H. S. School When I was at the age of three I joined the school in the village. When I came to K...
-
Journey of Jagat Mandir H. S. School When I was at the age of three I joined the school in the village. When I came to K...
-
VISIT TO ELECTION COMMISSION IN 2076 BHADRA 3(TUESDAY) WE WENT TO ELECTION TO LEARN THE ELECTION PROCESS AND HOW PEOPLE ELECTION PROCESS....
-
My Father.. The hero of my life is my father. Who did lots of hard work for making me happy. From many years before he is living in dub...
No comments:
Post a Comment