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

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(s == m) // This is important step
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can member data be public?

1039


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2640


What do you mean by delegate? Can a user retain delegates?

956


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1251


What is constructor and destructor in c++?

1120


How can I learn c++ easily?

1088


Is c++ double?

1041


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

1061


What is the main use of c++?

1131


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1565


What is c++ best used for?

1068


What programming language should I learn first?

1106


What is polymorphism and its type in c++?

1081


Explain terminate() and unexpected() function?

1110


How will you call C functions from C ++ and vice-versa?

1147