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

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

Is This Answer Correct ?    199 Yes 137 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ a float?

1075


Why would you use pointers in c++?

1160


What is a linked list in c++?

1058


What is the difference between object-oriented programming and procedural programming?

1241


How do you write a function that can reverse a linked-list?

1125


What is a class definition?

1083


what are the iterator and generic algorithms.

1950


What is the use of turbo c++?

1060


What is the c++ programming language used for?

1057


What is an iterator class in c++?

1147


How many types of classes are there in c++?

1050


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1904


What flag means?

967


What are the types of array in c++?

1171


Can comments be longer than one line?

1083