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

#include<stdio.h>
#include<conio.h>
int main()
{
int n,s=0,m,r;
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==s)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Destructor in C++?

1206


What are protected members in c++?

1143


Implement stack operations with pointers with appropriate exception checks.

990


Is rust better than c++?

1129


How much do coding jobs pay?

1025


what are the decision making statements in C++? Explain if statement with an example?

1103


What are the four main data types?

1091


What is endl c++?

1106


What is the use of c++ programming language in real life?

1054


Describe the role of the c++ in the tradeoff of safety vs. Usability?

1222


What is the best it certification?

1131


What are default parameters? How are they evaluated in c++ function?

1178


What is the difference between a baller and a reference in C++?

1130


Can static member variables be private?

1187


Write a c program for binary addition of two 8 bit numbers.

4128