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 are the advantages of using typedef in a program?

1116


What is a multiset c++?

1093


What is the benefit of encapsulation?

1040


What is namespace std; and what is consists of?

1252


What are the different types of polymorphism in c++?

1093


What is ios class in c++?

1055


What is a virtual destructor? Explain the use of it?

963


What is the purpose of template?

1059


What are the classes in c++?

1073


What is a friend function in c++?

1530


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

1068


What is runtime polymorphism in c++?

1115


What are separators in c++?

1051


How would you use the functions memcpy(), memset(), memmove()?

1053


What is a storage class? Mention the storage classes in c++.

991