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 / katta shravan kumar

#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;
n=n/10;
s=n*10+r;
}
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

What operators can you overload in c++?

1040


Explain Memory Allocation in C/C++ ?

1065


Write about the retrieval of n number of objects during the process of delete[]p?

1018


Can member functions be private?

1002


What is the purpose of template?

1109


What is c strings syntax?

1140


What is ofstream c++?

1086


Write a note about the virtual member function?

1046


What is a singleton c++?

1004


What is the default access level?

1063


What is microsoft c++ redistributable 2013?

1099


What can I safely assume about the initial values of variables which are not explicitly initialized?

1053


What is the extension of c++?

976


Differences between private, protected and public and give examples.

1054


What is c++ flowchart?

1388