Answer Posted / shweta
when we do reverse any no then we find a new no and this
no is equal to our privous no,which is called palindrom no.
by program
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n,m,sum=0,l;
printf("enter any no");
scanf("%d",&n);
while(n>0)
{
m=n%10;
sum=sum*10+m;
n=n\10;
}
if(n==l)
{
printf("no is palindrom");
}
else
{
printf("no is not palindrom");
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is clrscr ()?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Can you write the function prototype, definition and mention the other requirements.
How will you write a code for accessing the length of an array without assigning it to another variable?
Why we write conio h in c?
Explain About fork()?
Why is %d used in c?
What are pragmas and what are they good for?
What library is sizeof in c?
Combinations of fibanocci prime series
How can I automatically locate a programs configuration files in the same directory as the executable?
write a program to concatenation the string using switch case?
In a header file whether functions are declared or defined?