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 / hillol bhattacharya

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==n)
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

Describe exception handling concept with an example?

1009


Explain the purpose of the keyword volatile.

1121


How do you declare a set in c++?

932


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

1018


What is the difference between a template and a macro?

1014


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1116


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1295


Does c++ have arraylist?

983


What is const pointer and const reference?

1106


Explain the pure virtual functions?

1073


Is c++ free?

1063


Differentiate between late binding and early binding.

1226


Can create new c++ operators?

984


What is static in c++?

1027


What is a block in c++?

1002