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
Explain how can a program be made to print the name of a source file where an error occurs?
Describe dynamic data structure in c programming language?
For what purpose null pointer used?
What is the use of volatile?
Is fortran still used today?
Explain what is gets() function?
What is difference between stdio h and conio h?
Describe explain how arrays can be passed to a user defined function
Why do we use namespace feature?
Can you please explain the difference between strcpy() and memcpy() function?
What is a function in c?
What are the different types of control structures in programming?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What are the different types of pointers used in c language?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]