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

#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 ?    14 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class invariant in c++?

1226


Write a Program for find and replace a character in a string.

1078


What do you mean by inheritance in c++? Explain its types.

1133


Are there interfaces in c++?

996


What is null pointer and void pointer?

1073


. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

3273


How is c++ used in the real world?

1032


What is srand c++?

1104


How do you generate a random number in c++?

1089


What is difference between class and structure in c++?

1193


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1048


What is null c++?

1138


Is eclipse good for c++?

1041


Tell me can a pure virtual function have an implementation?

1023


Explain the difference between class and struct in c++?

1036