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 / lakshmi narayana

#include<stdio.h>

main()
{
int n,s=0,m;

printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
int r=n%10;
s=s*10+r;
n=n/10;
}
if(s == m) // This is important step
printf("the no is palindrome\n");
else
printf("no is not palindrome\n");
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain method of creating object in C++ ?

1105


What is the function to call to turn an ascii string into a long?

1060


Is c++ fully object oriented?

966


Which software is used for c++ programming?

1077


How a new operator differs from the operator new?

1115


Why was c++ created?

1026


why is iostream::eof inside a loop condition considered wrong?

1049


What is the purpose of template?

1109


What is #include ctype h in c++?

1165


What is encapsulation in c++ with example?

994


Write a Program to find the largest of 4 no using macros.

1079


What do nonglobal variables default to a) auto b) register c) static

1149


What are the two main components of c++?

1099


What is the use of endl in c++ give an example?

1161


Can we use clrscr in c++?

1079