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

How much do coding jobs pay?

979


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1077


When we use Abstract Class and when we use Interface?where we will implement in real time?

2156


How do you declare A pointer to a function which receives nothing and returns nothing

1196


Why namespace is used in c++?

1031


What is c++ map?

1086


What is using namespace std in c++?

1117


What are the implicit member functions of class?

1050


What is struct c++?

968


Why the usage of pointers in C++ is not recommended ?

1383


What is c++ code?

1086


What does flush do?

956


What is bubble sort c++?

970


How do c++ struct differs from the c++ class?

1147


Write about the scope resolution operator?

994