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 / krishna reddy

#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,s,reverse=0;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n!=0)
{
s=n%10;
reverse=reverse*10+s;
n=n/10;
}
if(m==reverse)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use using namespace std in c++?

1094


Can a program run without main function?

1186


What is a modifier in c++?

1161


What is virtual base class uses?

1376


In a function declaration what does extern means?

1070


Define the process of handling in case of destructor failure?

1075


Do you know about C++ 11 standard?

1100


How can you link a c program with a c function?

1091


What is the keyword auto for?

1051


What is the difference between the parameter to a template and the parameter to a function?

1128


How many types of modularization are there in c++?

1092


What operator is used to access a struct through a pointer a) >> b) -> c) *

1129


What does std mean in c++?

1141


Differentiate between an array and a list?

1187


Explain the properties and principles of oop.

1039