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
Explain zero based addressing.
What is echo in c programming?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is array of structure in c programming?
Explain do array subscripts always start with zero?
What are the two types of functions in c?
What are the 4 types of programming language?
How to compare array with pointer in c?
What are pointers?
What is mean by data types in c?
Can a function argument have default value?
Do you have any idea how to compare array with pointer in c?
Combinations of fibanocci prime series
if p is a string contained in a string?
Are enumerations really portable?