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...

palindrome for strings and numbers----Can anybody do the
prog?

Answer Posted / arup bhattacharya

#include<stdio.h>
#include<conio.h>
void main()
{
int n,r,temp;
int s=0;
clrscr();
printf("enter the number");
scanf("%d",&n);
temp=n;
while(temp>0)
{
r=temp%10;
s=s*10+r;
temp=temp/10;
}
if(n==temp)
printf(number is pallindrome");
else
printf("not pallindrome");
getch();
}

Is This Answer Correct ?    9 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of c?

1132


Explain how can I avoid the abort, retry, fail messages?

1058


Explain what is the difference between far and near ?

1112


What does double pointer mean in c?

1187


Can a void pointer point to a function?

1029


What is the difference between union and anonymous union?

1311


What is the use of c language in real life?

1028


Add Two Numbers Without Using the Addition Operator

828


What is double pointer?

1008


What is array of pointers to string?

1095


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1221


What is wrong in this statement?

1148


What is the use of printf() and scanf() functions?

1136


What is the explanation for the dangling pointer in c?

1117


How will you delete a node in DLL?

1296