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

What do you mean by global variables?

1121


Write a code/algo to find the frequency of each element in an array?

1160


What is private inheritance?

1140


In c++, what is the difference between method overloading and method overriding?

1187


Can I uninstall microsoft c++ redistributable?

1182


What is an undefined behavior and sequence points

1051


If dog is a friend of boy, is boy a friend of dog?

1047


What is a dll entry point?

1065


How does c++ structure differ from c++ class?

1179


what is pre-processor in C++?

1215


What do you understand by pure virtual function? Write about its use?

1044


Explain the pure virtual functions?

1162


What is the advantage of c++ over c?

1085


What is the difference between public and private data members?

1228


Write syntax to define friend functions in C++.

1120