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 is the difference between #define debug 0 and #undef debug?

1238


Is map sorted c++?

1051


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

1228


Explain the difference between abstract class and interface in c++?

1038


Differentiate between the message and method in c++?

1117


Are c and c++ different?

1029


Is there a sort function in c++?

1053


What is the use of namespace std in C++?

1119


Explain the register storage classes in c++.

1229


Can we specify variable field width in a scanf() format string? If possible how?

1353


What type of question are asked in GE code writing test based on c++ data structures and pointers?

4030


What is the difference between the compiler and the preprocessor?

1169


What is virtual table?

1174


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1293


Write a program to add three numbers in C++ utilizing classes.

1183