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 / vijay kumar

#include<stdio.h>
#include<conio.h>
void main()
{
int n,rev=0,m,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
}
if(rev == m) // This is important step
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 is the difference between a pointer and a link in c ++?

1065


What is static class data?

1069


Do you know about latest advancements in C++ ?

1254


What is general format for a prototype?

1049


Is map sorted c++?

1015


the maximum length of a character constant can be a) 2 b) 1 c) 8

1100


What is the main purpose of c++?

1066


What is protected inheritance?

1057


What do you mean by funtion prototype?

1087


In the derived class, which data member of the base class are visible?

1121


What is the use of ::(scope resolution operator)?

1078


What is an inclusion guard?

1207


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2083


Why is c++ still best?

991


Should the this pointer can be used in the constructor?

1036