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 / md.irfan(rourkela)

#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 ?    1204 Yes 747 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are friend functions in C++?

1026


Is c++ a difficult language?

1070


What is data types c++?

981


What is singleton pattern in c++?

941


Incase of a function declaration, what is extern means?

933


Why use of template is better than a base class?

1129


What is capacity in vector in c++?

956


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

3817


Why is c++ a mid-level programming language?

985


Is c++ a software?

1160


Explain the isa and hasa class relationships.

1006


What is a breakpoint?

977


what is a reference variable in C++?

1184


What is the best book for c++ beginners?

1007


Differentiate between late binding and early binding. What are the advantages of early binding?

999