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 / jamai partha

#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==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use the using declaration?

1120


What are the basics of local (auto) objects?

1081


What is the difference between new() and malloc()?

1928


Is c or c++ more useful?

998


How a new operator differs from the operator new?

1061


What is null and void pointer?

999


Why c++ is so important?

1025


What is abstraction with real time example?

1105


Program to check whether a word is a sub-string or not of a string typed

1979


What is a block in c++?

983


What are the methods of exporting a function from a dll?

1145


Does dev c++ support c++ 11?

967


Differentiate between a constructor and a method in C++.

996


How a modifier is similar to mutator?

1113


What is the size of a vector?

1063