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 / dharm

#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==s)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is best c++ or java?

1078


Explain the difference between c++ and java.

1109


How many types of scopes are there in c++?

1101


What is iostream in c++ used for?

1031


How do you flush a buffer in c++?

1095


Can constructor be private in c++?

1037


What is increment operator in c++?

1017


What is a sequence in c++?

1009


What is isdigit c++?

1103


How do you decide which integer type to use?

1005


Describe exception handling concept with an example?

1048


What is the purpose of ios::basefield in the following statement?

1253


What language does google use?

1163


Can you please explain the difference between static and dynamic binding of functions?

1031


What is & in c++ function?

1057