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 / sanam baig

#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(s == m) // This is important step
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of default constructor?

1041


What is meant by const_cast?

1071


Are there interfaces in c++?

937


Why we use #include conio h in c++?

992


Is c++ vector dynamic?

1012


What is the use of turbo c++?

1011


What is conditions when using boolean operators?

1141


What is the difference between method overloading and method overriding in c++?

1081


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2294


What are the differences between malloc() and calloc()?

1107


What is ctime c++?

1060


Explain the difference between struct and class in terms of access modifier.

1130


What is a manipulator in c++?

1171


What is a .lib file in c++?

940


What are static variables?

1083