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

Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1446


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3907


What is stack unwinding?

1133


Can you please explain the difference between overloading and overriding?

1089


What is iomanip c++?

1075


How do you find out if a linked-list has an end?

1120


Can member data be public?

1032


What is flush () in c++?

1077


How do we balance an AVL Tree in C++?

1126


What is an adaptor class or wrapper class in c++?

1197


Do you need a main function in c++?

1117


Describe exception handling concept with an example?

1048


What is void pointer in c++ with example?

1086


Define pointers?

1039


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1055