write program for palindrome

Answer Posted / chander singh

#include<stdio.h>
#include<conio.h>
void main()
{
int r,n,k=0,l;
printf("\n\t\tENTER THE NUMBER \t");
scanf("%d",&n);
l==n;
while(n>0)
{
r=n%10;
n=n/10;
k=k*10+r;
printf("%d",r); //
}
if(r==m)
printf("\n\t\tpalindrome");
else
printf("\n\t\t not palindrome");
getch();
}

Is This Answer Correct ?    16 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #include iomanip?

536


How would you find out if a linked-list is a cycle or not?

540


How many keywords are used in c++?

552


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

566


Explain differences between new() and delete()?

614






Explain the difference between class and struct in c++?

587


What is lambda in c++?

573


Explain about vectors in c ++?

591


What does std :: flush do?

678


What are the advantages of using const reference arguments in a function?

608


What is scope resolution operator in c++ with example?

549


Explain what data encapsulation is in c++?

566


Write about c++ storage classes?

740


Which of the following is evaluated first: a) && b) || c) !

1797


Define whitespace in C++.

750