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 / akash

#include<stdio.h>
#include<conio.h>
void main()
{
int n,rev=0,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
}
printf("reverse of the number is %d",rev);

}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which bit wise operator is suitable for checking whether a particular bit is on or off?

1025


Which should be more useful: the protected and public virtuals?

1033


What is abstraction c++?

1007


Can you use the function fprintf() to display the output on the screen?

1245


write a programme to get a character and thier ASCII value

3041


Difference between inline functions and macros?

1039


When should we use multiple inheritance?

1041


When do we run a shell in the unix system?

1075


What is private inheritance?

1092


What are the general quetions are in DEna bank manager IT/System interviews?

2020


What is meant by const_cast?

1124


Are iterators pointers?

1149


What is a multimap c++?

1198


Define virtual constructor.

1094


What is c++ good for?

1060