Results 1 to 1 of 1
- 07-14-2009, 07:59 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 7
- Rep Power
- 0
sorting variable values in ascending order?
a program that will sort the values of the 6 user-inputted variables: a, b, c, d, e, f in ascending order.
like,
inputs: a = 5, b = 3, c = 9, d = 0, e = 10, f = 2
output: a = 0, b = 2, c = 3, d = 5, e = 9, f = 10
1) Do NOT use arrays, looping statements, and any methods/classes other than MAIN and Acty2.
2) Use only 6 variables in your program to come up with the answer.
Similar Threads
-
[SOLVED] Sorting array in descending order?
By dan0 in forum New To JavaReplies: 14Last Post: 04-16-2009, 12:19 AM -
How to add coins in ascending order in arraylist
By tribujohn in forum New To JavaReplies: 2Last Post: 01-23-2009, 04:31 AM -
Get all values of variable that it can take
By umarsharief in forum New To JavaReplies: 9Last Post: 01-20-2009, 02:35 AM -
Sorting in descending order
By santanu in forum New To JavaReplies: 6Last Post: 11-26-2008, 11:43 PM -
adding a variable in order to a list
By Jrr in forum New To JavaReplies: 2Last Post: 11-19-2007, 01:10 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks