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 / jamai partha

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the merits and demerits of declaring a nested class in C++?

1021


How would you use the functions memcpy(), memset(), memmove()?

1090


How many standards of c++ are there?

1092


Write about an iterator class?

1073


What is pure virtual function? Or what is abstract class?

1051


Does c++ have a hash table?

994


How do you flush a buffer in c++?

1095


Where are setjmp and longjmp used in c++?

1113


What is c++ and its uses?

1223


Difference between an inspector and a mutator

1334


What is the basic structure of c++ program?

1098


How are pointers type-cast?

1114


What is a singleton c++?

1002


Are there any special rules about inlining?

1077


What is the difference between c++ and turbo c++?

1197