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 / tarun soni

#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==m)
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 setbase c++?

1125


What is main function in c++ with example?

1218


Can a Structure contain a Pointer to itself?

1131


How a modifier is similar to mutator?

1175


What is pointer with example?

1052


If a function doesn’t return a value, how do you declare the function?

1052


Differentiate between late binding and early binding. What are the advantages of early binding?

1027


Can I make ios apps with c++?

1047


What is the use of "new" operator?

1125


What are the advantages of using a pointer?

1074


How the virtual functions maintain the call up?

1161


What is the this pointer?

1108


How do you flush std cout?

1087


What is the latest version on c++?

1132


Explain overriding.

982