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

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

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various arithmetic operators in c++?

1180


Explain selection sorting. Also write an example.

1095


What is difference between c++ and c ++ 14?

1112


Is it possible to write a c++ template to check for a function's existence?

1076


Why c++ is so important?

1139


Write about the stack unwinding?

1119


What would happen on forgetting [], while deallocating an array through new?

1146


How does java differ from c and c++?

1042


What sorting algorithm does c++ use?

1197


Is c++ the best programming language?

1076


What is the use of typedef?

1145


Is there a c++ certification?

1103


Mention the ways in which parameterized can be invoked. Give an example of each.

1113


What is the basic structure of c++ program?

1155


Specify some guidelines that should be followed while overloading operators?

1262