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

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

1102


Explain explicit container.

1050


How is data hiding achieved in c++?

1046


What are the three forms of cin.get() and what are their differences?

1176


How the endl and setw manipulator works?

987


What is the insertion operator and what does it do?

1011


What is near, far and huge pointers? How many bytes are occupied by them?

1084


What does I ++ mean in c++?

1053


Why do we use string in c++?

905


Explain the difference between new() and malloc() in c++?

1097


What are move semantics?

1103


What is a float in c++?

948


What are c++ files?

1082


What it is and how it might be called (2 methods).

1129


What is the difference between set and map in c++?

1112