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
Why is python slower than c?
Differentiate abs() function from fabs() function.
What is the advantage of a random access file?
How does selection sort work in c?
Why do we use static in c?
Why do we need arrays in c?
Write a program to implement queue.
What is the difference between struct and typedef struct in c?
What is a scope resolution operator in c?
Distinguish between actual and formal arguments.
What is variable initialization and why is it important?
In C programming, what command or code can be used to determine if a number of odd or even?
What are the 4 types of programming language?
Lists the benefits of c programming language?
What is the stack in c?