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 A PROGRAM TO FIND A REVERSE OF TWO NO

Answer Posted / selvakumar

#include<stdio.h>
#include<conio.h>
void main()
{
int n,a,b=0,c;
printf("\nEnter any number : ");
scanf("%d",&n);
c=n;
while(n!=0)
{
a = n%10;
b = (b*10)+a;
n = n/10;
}
if(b==c)
printf("\nPalindrome no");
else
printf("\nNot a palindrome no");
printf("\nReverse of the number is %d",b);
getch();
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of keyword 'register' with respect to variables.

969


What is header file definition?

1024


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

975


Explain what math functions are available for integers? For floating point?

1062


What is function and its example?

1110


Explain the difference between malloc() and calloc() function?

988


What is assignment operator?

1000


Why do we need functions in c?

956


What is the use of linkage in c language?

1011


Explain how can I remove the trailing spaces from a string?

991


Why we use conio h in c?

1155


Explain Basic concepts of C language?

1080


What is the right type to use for boolean values in c?

990


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

2042


Why does not c have an exponentiation operator?

998