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

Define private, protected and public access control.

1167


What is pointer -to-members in C++? Give their syntax?

1078


Why we use #include iostream in c++?

1108


How can I improve my c++ skills?

1195


What is the difference between global variables and local variable

1117


Are strings mutable in c++?

1197


Is there any function that can skip certain number of characters present in the input stream?

1127


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

1109


How is computer programming useful in real life?

1120


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1163


What is the purpose of the "delete" operator?

1114


Write is a binary search tree? Write an algo and tell complexity?

1072


How long will it take to learn programming?

1104


What is object in c++ example?

1166


How we can differentiate between a pre and post increment operators during overloading?

1156