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 display numeric value in reverse order.
Ex: I have given a number like 7584, It should display in
reverse order like 4857.

Answer Posted / pankaj

int n=1856,rem,n1,temp=0;

for(int i=0;n>=1;i++)
{
rem=n%10;
n=n/10;
temp=(temp*10)+rem;
}

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is entity reference?

1008


What is Document Object Model?

1004


Why do we use j2ee?

889


What is j2ee application?

956


What do you mean by the deployment descriptor?

977


What is java application server?

902


What is business logic?

956


What is java 2 platform, micro edition (j2me)?

1063


What is j2ee api?

955


What do you understand by business logic?

905


Why java is called portable language?

906


Why awt is used in java?

882


What is j2ee called now?

971


What is java 2 platform, enterprise edition (j2ee)?

886


What is initialization parameter?

1056