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 / saurav sadangi

#include<stdio.h>

int main(){
int m,n,sum=0,r;
printf("Enter n: ");
scanf("%d",&n);
m=n;
while(n>0){
r=n%10;
sum=sum*10+r;
n=n/10;
}
if(sum==m){
printf("The no %d is pallendrom\n",m);
}
else{
printf("The no %d is not pallendrom\n",m);
}
system("PAUSE");
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

Is c++ a good beginners programming language?

1080


What is an adaptor class in c++?

1200


What are c++ redistributables?

1038


How does the copy constructor differ from the assignment operator (=)?

1153


what is scupper?

2397


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1067


Is ca high or low level language?

1086


Why do we need constructors in c++?

1113


Can comments be longer than one line?

1077


Differentiate between late binding and early binding.

1280


How is c++ used in the real world?

1043


How would you use qsort() function to sort an array of structures?

1124


What is the function of I/O library in C++ ?

1197


What does flush do?

995


Define a constructor - what it is and how it might be called (2 methods)?

1145