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
What is difference between n and endl in c++?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
the first character in the variable name must be an a) special symbol b) number c) alphabet
What is switch case in c++ syntax?
what is Loop function? What are different types of Loops?
How would you use the functions randomize() and random()?
what is a class? Explain with an example.
Can we distribute function templates and class templates in object libraries?
What is an html tag?
What is the use of data hiding?
What is friend class in c++ with example?
How does atoi function work?
What is class in c++ with example?
What is ctime c++?
What is an undefined reference/unresolved external symbol error and how do I fix it?