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 / md.irfan(rourkela)

#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;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    1204 Yes 747 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is endl?

1151


What is operators in c++?

999


What is the need of a destructor?

1130


Does dev c++ support c++ 11?

1010


What is copy constructor? Can we make copy constructor private in c++?

1079


What is a node class in c++?

1067


Explain the register storage classes in c++.

1186


Can you please explain the difference between overloading and overriding?

1089


What is an iterator?

1189


What is the return value of the insertion operator?

1126


What do you mean by vtable and vptr in c++?

1041


What is an html tag?

1137


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1037


What flag means?

954


What is namespace & why it is used in c++?

1109