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

State the difference between delete and delete[].

1032


What do you mean by translation unit in c++?

1280


Describe the advantage of an external iterator.

981


Can I learn c++ without c?

1090


If a header file is included twice by mistake in the program, will it give any error?

993


What is tellg () in c++?

1235


Should the member functions which are made public in the base class be hidden?

965


What is a c++ map?

1298


Explain the difference between overloading and overriding?

1082


What is the difference between prefix and postfix versions of operator++()?

1026


How would you use the functions randomize() and random()?

1022


What are the benefits of oop in c++?

1123


What is the difference between c++ and turbo c++?

1102


Can char be a number c++?

991


Where the memory to the static variables is allocated?

1002