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

how to find out the reverse number of a digit if it is
input through the keyboard?

Answer Posted / sneha

main( )
{
int x,result,next;
printf("Enter The number to revers=");
scanf("%d",&x);
//5th
result=x%10;
result=result*10;
//4th
next=(x/10)%10;
result=(result+next)*10;
//3rd
next=(x/100)%10;
result=(result+next)*10;
//2nd
next=(x/1000)%10;
result=(result+next)*10;
//1st
next=(x/10000)%10;
result=result+next;
printf("%d",result);
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to identify if a given binary tree is balanced or not.

1166


What is keyword with example?

1069


What is hungarian notation? Is it worthwhile?

1227


Does c have an equivalent to pascals with statement?

1011


What is scanf () in c?

1130


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1062


What is double pointer?

1008


How can I discover how many arguments a function was actually called with?

1070


What does the function toupper() do?

1136


Explain what header files do I need in order to define the standard library functions I use?

1173


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1308


What is a wrapper function in c?

1120


What are the functions to open and close the file in c language?

1041


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1418


What are static variables in c?

1084