Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello everybody..
I want to know the algorithm of this question in java:
the program takes a number and make the biggest number with the digits of the taken number and print.
thank u all.
Posted
Comments
Maciej Los 28-Mar-15 16:48pm    
What have you tried till now? Where are you stuck?
Richard MacCutchan 29-Mar-15 3:38am    
Try working it out on paper so you can see how the algorithm should operate.

1 solution

Firstly, algorithms are language independent: it doesn't matter what the target language is, the algorithm is the same. Just as with the process of "Driving": it doesn't matter if it's your car or my car - the process is the same. "Driving" as an algorithm is independent of the "Car" you are using it on.

Secondly, we do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900