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 / m.sathish krishna

#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,s=0,m;
clrscr();
printf("enter n");
scanf("%d",n);
m=n;
while(n>0)
(
r=n%10;
s=s*(10+r);
n=n/10;
}
if(m=n)
{
printf("it is palindrom");
}
else
{
printf("not a polindrom");
}
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ programming language?

1096


Write about the access privileges in c++ and also mention about its default access level?

1055


What is private inheritance?

1090


Define the process of handling in case of destructor failure?

1053


List the issue that the auto_ptr object handles?

1024


What is constructor in C++?

1084


Can a built-in function be recursive?

1022


Which compiler does turbo c++ use?

1072


What are the characteristics of friend functions?

1011


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

1115


How many namespaces are there in c++?

1071


Why c++ is better than c language?

1018


Can I run c program in turbo c++?

1032


What is isdigit c++?

1103


When can I use a forward declaration?

1098