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 / m.sathish krishna

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boyce codd normal form in c++?

1097


What is the size of integer variable?

1010


Explain what are the sizes and ranges of the basic c++ data types?

1109


When does the c++ compiler create temporary variables?

987


What is the best c++ compiler?

1054


Describe the syntax of single inheritance in C++?

1020


Why c++ is called oop?

1051


What is the cout in c++?

1001


What is c++ good for?

1001


What is the difference between while and do while loop?

1085


What are compilers in c++?

1021


What is string in c++ programming?

1108


What are single and multiple inheritances in c++?

1029


Explain abstraction.

1030


What do you mean by static variables?

1103