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...

how to write palindrome program?

Answer Posted / arnab

#include<iostream.h>
#include<conio.h>
void main()
{ int num, num1, rem, rev=0;
cin>>num;
num1=num;
while(num!=0)
{
rem=num%10;
rev=rev*10+rem;
num=num/10;
}
if(num1==rev)
cout<<"yes the no. is pallindrome";
else
cout<<"no the no. is not pallindrome";
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are preprocessor directives in c?

1081


What is declaration and definition in c?

1077


What is a floating point in c?

1062


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1958


write a program to display all prime numbers

1950


what is the difference between class and unio?

2349


Did c have any year 2000 problems?

1096


What is string constants?

1137


Define Array of pointers.

1091


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1203


Explain the difference between structs and unions in c?

1000


write a c program to find the sum of five entered numbers using an array named number

2120


Is c++ based on c?

1063


What is the purpose of main() function?

1231


Where in memory are my variables stored?

1168