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
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Stimulate calculator using Switch-case-default statement for two numbers
Is python a c language?
What are linker error?
Explain how do you sort filenames in a directory?
Why is a semicolon (;) put at the end of every program statement?
Can a pointer be null?
What does printf does?
What is the difference between the = symbol and == symbol?
the question is that what you have been doing all these periods (one year gap)
What is the function of volatile in c language?
What is a lookup table in c?
What is a MAC Address?
How do you redirect a standard stream?
What does the c preprocessor do?