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

How many standards of c++ are there?

1109


How a macro differs from a template?

1184


What is isdigit c++?

1116


Eplain extern keyword?

1039


Explain the operation of overloading of an assignment operator.

1185


How many characters are recognized by ANSI C++?

1435


Can I learn c++ as my first language?

1125


Do you know what is overriding?

1221


When does a 'this' pointer get created?

1114


What is abstract keyword in c++?

1085


Why do we use vector in c++?

1088


how to connect with oracle 9i with server in socket program in c/c++

2362


What is atoi?

986


Why is polymorphism useful?

1082


What is the disadvantage of using a macro?

1140