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 / katta shravan kumar

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are single and multiple inheritances in c++?

1104


Explain the operation of overloading of an assignment operator.

1177


Which bitwise operator is used to check whether a particular bit is on or off?

1070


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2578


What do you mean by storage classes?

1614


What is meant by entry controlled loop?

1133


What are the c++ access specifiers?

1431


What is c++ in english?

1077


What is the difference between interpreters and compilers?

1201


What is the difference between containment and delegation?

1344


What is the use of setfill in c++?

1084


How does list r; differs from list r();?

1169


What is a wchar_t in c++?

1153


What is a singleton class c++?

1048


What is c++ map?

1174