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 / varun tiwari

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

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the keyword struct is different from the keyword class in c++?

1047


What is function declaration in c++ with example?

1113


What is the difference between mutex and binary semaphore?

1251


What are c++ files?

1149


What is searching?

1138


What are proxy objects in c++?

1195


What is bubble sort c++?

1016


What return value must conversion operators have in their declaration?

1105


What is wrapper class in c++?

1133


What is tellg () in c++?

1317


Define a conversion constructor?

1106


Difference between a homogeneous and a heterogeneous container

1151


Can we use struct in c++?

1031


What is a storage class? Mention the storage classes in c++.

1027


What gives the current position of the put pointer?

1004