See what questions your friends are asking today.

Write a C program to check whether the string is palindrome or not?

Answer:
cls
input "enter a string=";s$
l=len(s$)
for i = l to 1 step-1
c$=mid$(s$,i,l)
next i
r$=c$+r$
if r$=c$ then
print "no. is palindrome"
else
print "no. is not palindrome"
endif
end

Contributors

Hardik Poudel
Trust: 3
  • Answered Most Recently

Top Contributors This Week

  • Trust Points: 2703
  • Member Since: 3/09
  • Trust Points: 4830
  • Member Since: 1/12
  • Trust Points: 3818
  • Member Since: 5/09
  • Trust Points: 1577
  • Member Since: 11/09
  • Trust Points: 1047
  • Member Since: 11/08