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 n,s=0,r,m;
printf("Enter m:- ");
scanf("%d",&m);

n=m;

while(m>0){
r=m%10;
s=(s*10)+r;
m/=10;
}
printf("The reverse no is %d\n",s);

if (s==n)
printf("%d is pallendrom.\n",n);
else
printf("%d is not pallendrom.\n",n);

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 is the role of C++ shorthand's?

1287


How does list r; differs from list r();?

1170


what is pre-processor in C++?

1178


What is a far pointer? where we use it?

1085


What are arrays c++?

1119


What is operator overloading in c++ example?

1148


What is the difference between C and CPP?

1174


What are friend functions in C++?

1078


Can you declare an array without a size in c++?

1028


How many types of modularization are there in c++?

1087


Can I learn c++ without c?

1153


What apps are written in c++?

1109


If there are two catch statements, one for base and one for derived, which should come first?

1042


Explain function overloading

1028


What are the uses of typedef in a program?

1094