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

#include,studio.h>
#include<conio.h>
void main()
{
int num,mod,rev=0;
clrscr();
printf("Enter any no:");
scanf("%d",&n);
while(n>=0)
{
mod=n%10;
rev=rev*10+mod;
n=n/10;
}
if(rev=n)
{
printf("palindrome");
}
else
{
printf("not palindrome");
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what you mean by a pointer.

1052


How is objective c different from c++?

1193


What is the use of this pointer in c++?

968


Which software is used for c++ programming?

1036


Explain how to initialize a const data member.

1070


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

997


What is using namespace std in c++?

1086


Do you know the use of vtable?

1085


Out of fgets() and gets() which function is safe to use and why?

1131


What do you mean by static variables?

1104


Which function should be used to free the memory allocated by calloc()?

976


Which is best c++ or java?

1040


What is diamond problem in c++?

948


Is vector a class in c++?

978


What is == in programming?

972