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

#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 ?    242 Yes 354 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differences between private, protected and public and give examples.

1079


State two differences between C and C++.

1182


Write a program using display() function which takes two arguments.

1091


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

1130


If all is successful, what should main return a) 0 b) 1 c) void

1021


Can comments be nested?

1037


what is data encapsulation in C++?

1083


Why do we use the using declaration?

1184


What is a virtual destructor? Explain the use of it?

1000


Why is "using namespace std;" considered bad practice?

1107


Differentiate between a constructor and a destructor in c++.

1024


Differentiate between an array and a list?

1185


Is c++ the hardest language?

996


Can I learn c++ in a week?

1086


What is the main function c++?

1132