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

Evaluate !(1&&1||1&&0) a) Error b) False c) True

1216


What are the advantages of c++?

1906


What is setf in c++?

1098


Is nan a c++?

1164


What is class syntax c++?

1165


What is a volatile variable in c++?

1481


How does a copy constructor differs from an overloaded assignment operator?

1049


What is main function in c++ with example?

1235


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1060


Difference between delete and free.

1086


What are move semantics?

1175


How const int *ourpointer differs from int const *ourpointer?

1148


Program to check whether a word is a sub-string or not of a string typed

2046


Please explain class & object in c++?

1101


Do inline functions improve performance?

1074