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 / tarun soni

#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(s==m)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you clear a buffer in c++?

921


What it is and how it might be called (2 methods).

1096


What is the difference between *p++ and (*p)++ ?

1293


What is the difference between structures and unions?

1015


Why pointer is used in c++?

1085


What methods can be overridden in java?

1198


Why is null pointer used?

1116


Describe linked list using C++ with an example.

1028


What is this weird colon-member (" : ") syntax in the constructor?

966


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

1132


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1200


How much is c++ certification?

995


Difference between struct and class in terms of access modifier.

1149


Write about the various sections of the executable image?

936


What are function prototypes?

1191