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

int main()
{
int a = 5678;
int temp=0,rev;

while((a%10)!=0)
{
rev =a%10;
a=a/10;
temp= temp*10+ rev;
}
return 0;
}

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are bus errors, memory faults, and core dumps?

1241


What are the c keywords?

1165


Why can’t we compare structures?

1241


Explain what are the different data types in c?

1184


What is sizeof array in c?

1003


What is the purpose of 'register' keyword?

1062


Where we use clrscr in c?

1107


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1057


Whats s or c mean?

968


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1233


what are enumerations in C

1130


Explain how can I convert a number to a string?

1124


I have seen function declarations that look like this

1009


Why we use conio h in c?

1172


Explain how can you tell whether a program was compiled using c versus c++?

1071