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

#include<stdio.h>
void main
{
int n,t,d,r;
printf("Enter the number:");
scanf("%d",&n);
t=n;
while(n>=1)
{
d=n%10;
r=(r*10)+d;
n=n/10;
}
if(t==r)
printf("Palindrome");
else
printf("Not a palindrome");
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any "C" function by default returns an a) int value b) float value c) char value d) a & b

1057


explain what is fifo?

1037


What the advantages of using Unions?

1184


Explain what’s a signal? Explain what do I use signals for?

1086


What are the types of bitwise operator?

1071


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1253


What are the key features in c programming language?

1026


What is structure in c explain with example?

1120


How does struct work in c?

1040


What does the file stdio.h contain?

1021


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

2081


What are variables c?

1010


Do you know pointer in c?

1009


Why is it important to memset a variable, immediately after allocating memory to it ?

2025


Give the rules for variable declaration?

1140