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 / lakshmi narayana

#include<stdio.h>

main()
{
int n,s=0,m;

printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
int r=n%10;
s=s*10+r;
n=n/10;
}
if(s == m) // This is important step
printf("the no is palindrome\n");
else
printf("no is not palindrome\n");
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which software is used to run c++ program?

944


Which format specifier is used for printing a pointer value?

1009


What is the advantage of an external iterator.

980


When do we run a shell in the unix system? How will you tell which shell you are running?

919


Give example of a pure virtual function in c++?

1087


Describe the process of creation and destruction of a derived class object?

1074


What are the various compound assignment operators in c++?

937


how to connect with oracle 9i with server in socket program in c/c++

2286


How does com provide language transparency?

967


What are activex and ole?

1009


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2650


What are dynamic type checking?

988


Explain the concept of memory leak?

1046


What is the difference between C and CPP?

1101


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1000