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

What are the two main components of c++?

1053


Explain class invariant.

987


What are the advantages of using a pointer?

1021


Difference between delete and free.

1021


What is ostream in c++?

956


What do c++ programmers do?

1008


What are libraries in c++?

1014


What is a volatile variable in c++?

1356


What is virtual destructor? What is its use?

1000


Explain how to initialize a const member data.

979


Discuss the possibilities related to the termination of a program before entering the mainq method?

896


In the derived class, which data member of the base class are visible?

1066


What is endianness?

1035


What is an operator function? Describe the function of an operator function?

1063


Can you explicitly call a destructor on a local variable?

975