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 do you differentiate between overloading the prefix and postfix increments?

1039


What is a hashmap c++?

1046


What is stl containers in c++?

988


What are the two types of comments, and how do they differ?

1048


Explain data encapsulation?

1061


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1021


What is c++ course?

982


What is atoi?

922


What is data types c++?

955


How do you establish a has-a relationship?

1036


Difference between delete and free.

1022


Show the declaration for a pointer to function returning long and taking an integer parameter.

1063


What is using namespace std in cpp?

1064


Does c++ support multilevel and multiple inheritances?

948


What are different types of loops in c++?

1070