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 / dinakar

#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;
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 ?    242 Yes 88 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about near, far and huge pointer?

1061


What is std :: endl?

972


Will rust take over c++?

1001


Write a program to interchange 2 variables without using the third one.

1004


What is iterator c++?

926


Explain the operation of overloading of an assignment operator.

1106


What does namespace mean in c++?

1034


Mention the ways in which parameterized can be invoked.

891


What is the history of c++?

998


Can we declare a base-class destructor as virtual?

958


the first character in the variable name must be an a) special symbol b) number c) alphabet

1039


Why can’t you call invariants() as the first line of your constructor?

957


Why do we use string in c++?

884


Explain linked list using c++ with an example?

1021


What is a local reference?

1140