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 the difference between function overloading and operator overloading?
What is the default width for ouputting a long integer using the insertion operator?
What kind of jobs can I get with c++?
Explain linear search.
What does it mean to declare a member function as virtual?
Write a Program to find the largest of 4 no using macros.
Why do we use structure in c++?
Explain rethrowing exceptions with an example?
What is #include cstdlib in c++?
What are the 3 levels of programming languages?
Explain the difference between c++ and java.
What c++ library is string in?
What is a volatile variable in c++?
Explain the difference between class and struct in c++?
Is swift faster than go?