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 / amit

#include<iostream.h>
#include<conio.h>
main()
{
char c[8];
cout<<"enterd hte world of polindorom";
cin>>c;
int i=strlen(c);
i=i-1;
int flag=0;
for(int j=0;j<=1;j++)
{
if(c[j]==c[i])
{
flag=1;
}
else
{
int flag=0;
break;
}
}
i--;
if(flag==1)
{
cout<<"your option is polindorome";
}
else
{
cout<<"your option is not polindorome";
}
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 the differences between malloc() and calloc()?

1173


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

1153


give me an example for testing a program showing the test path .show how the test is important and complex.

2922


What is a syntax in c++?

1154


In a function declaration, what does extern mean?

1057


What are the types of array in c++?

1157


What is an operator function? Describe the function of an operator function?

1141


Are there interfaces in c++?

994


Define vptr.

1026


How are the features of c++ different from c?

1088


How is computer programming useful in real life?

1054


Why we use #include iostream in c++?

1052


What are punctuators in c++?

1157


What is a v-table?

1172


Mention the ways in which parameterized can be invoked. Give an example of each.

1056