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: 2708
  • Member Since: 3/09
  • Trust Points: 4855
  • Member Since: 1/12
  • Trust Points: 2582
  • Member Since: 12/10
  • Trust Points: 10073
  • Member Since: 11/09
  • Trust Points: 3790
  • Member Since: 10/10