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 the parameter to a template and the parameter to a function?

1077


Why is c++ still best?

943


Can recursive program be written in C++?

1199


What is the role of static keyword for a class member variable?

1045


What is a driver program?

1069


Explain terminate() function?

1017


Why main function is special in c++?

1076


what is Loop function? What are different types of Loops?

1181


What information can an exception contain?

1109


What is a manipulator in c++?

1186


Write a program to find the Factorial of a number

1026


What is array give example?

1009


Why c++ does not have finally?

1038


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

1068


Is c++ the hardest programming language?

1090