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

Can we declare a base-class destructor as virtual?

1022


What are dynamic type checking?

1055


write a porgram in c++ that reads an integer and print the biggest digit in the number

2259


What is prototype in c++ with example?

1167


what is Member Functions in Classes?

1214


Is it possible to provide special behavior for one instance of a template but not for other instances?

1141


What are separators in c++?

1099


What is the difference between the functions memmove() and memcpy()?

1130


Differentiate between an inspector and a mutator ?

1237


What is the best it certification?

1132


How do you establish a has-a relationship?

1125


what is a reference variable in C++?

1249


Can we make copy constructor private in c++?

1066


What do you mean by translation unit?

1107


What are the differences between the function prototype and the function defi-nition?

1111