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

What are the defining traits of an object-oriented language?

1201


How do you show the declaration of a virtual constructor?

937


Describe about storage allocation and scope of global, extern, static, local and register variables?

1255


What does flush do?

987


Explain linear search.

1057


what are Operators and explain with an example?

1157


Mention the ways in which parameterized can be invoked. Give an example of each.

1058


Eplain extern keyword?

1026


Can you please explain the difference between static and dynamic binding of functions?

1031


Can comments be longer than one line?

1072


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1049


daily Routine of father

1408


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1176


What is abstract class in c++?

1048


What is class in c++ with example?

1263