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 / krishna reddy

#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,s,reverse=0;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n!=0)
{
s=n%10;
reverse=reverse*10+s;
n=n/10;
}
if(m==reverse)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain "const" reference arguments in function?

1068


Explain overriding.

996


Explain the different access specifiers for the class member in c++.

1014


What are friend classes?

1073


What is difference between malloc()/free() and new/delete?

1174


By using c++ with an example describe linked list?

1033


Explain the difference between using macro and inline functions?

1131


What is the two main roles of operating system?

1043


What is double in c++?

1073


Specify different types of decision control statements?

859


Is std :: string immutable?

1051


How do you find out if a linked-list has an end?

1128


What is an arraylist c++?

1225


What problems might the following macro bring to the application?

1057


Differentiate between late binding and early binding.

1283