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

What happens when the extern "c" char func (char*,waste) executes?

1130


What are default parameters? How are they evaluated in c++ function?

1223


How do you traverse a btree in backward in-order?

1095


Describe delete operator?

1146


Write about the retrieval of n number of objects during the process of delete[]p?

1061


Describe the syntax of single inheritance in C++?

1120


How do you declare A pointer to a function which receives nothing and returns nothing

1301


Explain explicit container.

1142


Why is null pointer used?

1221


Is c++ faster than c?

1085


List different attributes in C++?

1147


Explain the differences between list x; & list x();.

1060


Explain one-definition rule (odr).

1172


What kind of jobs can I get with c++?

1149


What are the advantages of c++ over c?

1134