Answer Posted / arnab
#include<iostream.h>
#include<conio.h>
void main()
{ int num, num1, rem, rev=0;
cin>>num;
num1=num;
while(num!=0)
{
rem=num%10;
rev=rev*10+rem;
num=num/10;
}
if(num1==rev)
cout<<"yes the no. is pallindrome";
else
cout<<"no the no. is not pallindrome";
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are preprocessor directives in c?
What is declaration and definition in c?
What is a floating point in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
write a program to display all prime numbers
what is the difference between class and unio?
Did c have any year 2000 problems?
What is string constants?
Define Array of pointers.
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Explain the difference between structs and unions in c?
write a c program to find the sum of five entered numbers using an array named number
Is c++ based on c?
What is the purpose of main() function?
Where in memory are my variables stored?