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
List some applications of c programming language?
What is array within structure?
What are the different types of endless loops?
What is the purpose of 'register' keyword?
What is the difference between int main and void main?
What is advantage of pointer in c?
ATM machine and railway reservation class/object diagram
Explain what is the difference between #include and #include 'file' ?
What are lookup tables in c?
When should you not use a type cast?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
List some of the static data structures in C?
What are the functions to open and close file in c language?
Is null always defined as 0(zero)?
Is it better to bitshift a value than to multiply by 2?