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 keyword in c?

957


Tell me is null always defined as 0(zero)?

1031


What are # preprocessor operator in c?

1040


Are negative numbers true in c?

996


What is sizeof array in c?

983


What is ctrl c called?

999


How would you obtain the current time and difference between two times?

1232


What is pointers in c with example?

1016


Write a function that will take in a phone number and output all possible alphabetical combinations

997


What are the different categories of functions in c?

1077


What is c++ used for today?

1057


Are pointers really faster than arrays?

962


Differentiate abs() function from fabs() function.

956


How many levels deep can include files be nested?

1094


What type of function is main ()?

993