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 / jamai partha

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ a difficult language?

1129


Describe the advantage of an external iterator.

1042


Which bit wise operator is suitable for checking whether a particular bit is on or off?

1035


What is ofstream c++?

1089


Write a program to find the reverse Fibonacci series starting from N.

1278


What is the default access level?

1072


How does class accomplish data hiding in c++?

1184


How to allocate memory dynamically for a reference?

1051


What are structures and unions?

1009


What is the type of 'this' pointer?

1022


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

1267


What are the uses of pointers?

1079


Can you overload the operator+ for short integers?

1045


What is helper in c++?

1093


Is string data type in c++?

1042