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 fatal error?

958


What does j2ee stand for?

840


How do I run java?

820


What are the components of awt in java?

881


What is data?

899


What is a thin client?

949


What does the web module contain?

904


What is mean by j2ee?

810


What is the ear file?

887


How to create object without using the keyword “new” in java?

953


What is mean by connection pooling?

936


Is java 100 percent pure object oriented?

869


What is a java developer?

919


What do you understand by connector?

853


What is a jbutton in java?

897