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 how does flowchart help in writing a program?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What does typedef struct mean?
What is use of bit field?
When the macros gets expanded?
Why is c not oop?
What is a union?
regarding pointers concept
What are file streams?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Why is c used in embedded systems?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
How many levels of pointers can you have?
Explain the red-black trees?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code