Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to write palindrome program?

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


Please Help Members By Posting Answers For Below Questions

List some applications of c programming language?

958


What is array within structure?

1131


What are the different types of endless loops?

1082


What is the purpose of 'register' keyword?

1103


What is the difference between int main and void main?

1051


What is advantage of pointer in c?

1193


ATM machine and railway reservation class/object diagram

5253


Explain what is the difference between #include and #include 'file' ?

1029


What are lookup tables in c?

1005


When should you not use a type cast?

1127


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1117


List some of the static data structures in C?

1202


What are the functions to open and close file in c language?

1207


Is null always defined as 0(zero)?

1118


Is it better to bitshift a value than to multiply by 2?

1094