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...
-
Q BASIC PROGRAM TO FIND AREA OF BOX. FUNCTION DECLARE FUNCTION AREA(L,B,H) CLS INPUT "ENTER LENGTH";L INPUT "ENTER BREAD...
-
MY FATHER My Father name is LOK RAJ PANERU. He is thirty nine year old. He was born in Kailali, Dhanghadi. He rade up to class ten. He ...
-
GAI JATRA 2075/18 Gai Jatra is a type of festival which is only celebrated in Nepal. Gai means cow and jatra means festival. Gai Jatra is...
No comments:
Post a Comment