Answer Posted / selvakumar
#include<stdio.h>
#include<conio.h>
void main()
{
int n,a,b=0,c;
printf("\nEnter any number : ");
scanf("%d",&n);
c=n;
while(n!=0)
{
a = n%10;
b = (b*10)+a;
n = n/10;
}
if(b==c)
printf("\nPalindrome no");
else
printf("\nNot a palindrome no");
printf("\nReverse of the number is %d",b);
getch();
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain the use of keyword 'register' with respect to variables.
What is header file definition?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Explain what math functions are available for integers? For floating point?
What is function and its example?
Explain the difference between malloc() and calloc() function?
What is assignment operator?
Why do we need functions in c?
What is the use of linkage in c language?
Explain how can I remove the trailing spaces from a string?
Why we use conio h in c?
Explain Basic concepts of C language?
What is the right type to use for boolean values in c?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Why does not c have an exponentiation operator?