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...

write program for palindrome

Answer Posted / madhupriya

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is facebook written in c++?

993


What is heap sort in c++?

1068


Is c++ vector dynamic?

1109


What is an inclusion guard?

1195


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6403


Should I learn c++ c?

1046


What are the main features of c++?

1002


What is stream and its types in c++?

1055


What is boyce codd normal form in c++?

1156


Is overriding possible in c++?

1001


Explain stack unwinding.

1073


Difference between class and structure.

1160


Why the usage of pointers in C++ is not recommended ?

1444


what are the iterator and generic algorithms.

2160


Why c++ is so important?

1079