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

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,k,i,t,rev;
cout<<"enter your number = ";
cin>>n;
k=n;
while(t>0)
{
i=n%10;
rev=rev*10+i;
t=n/10;
n=n/10;
}
if(rev==k)
cout<<"it is a palindrome";
else
cout<<"it is not a palindrome";
getch();
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c++ is not a pure oop language?

1064


Tell me what are static member functions?

1096


What is c++ hash?

1119


How come you find out if a linked-list is a cycle or not?

1046


Can constructor be static in c++?

1130


Can malloc be used in c++?

1093


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2398


What is c++ iterator?

1159


List the issue that the auto_ptr object handles?

1037


What are advantages of c++?

1034


Is arr and &arr are same expression for an array?

1073


What is general format for a prototype?

1052


What is a multimap c++?

1226


State two differences between C and C++.

1187


Why do we use classes in programming?

1056