how do i write a java program that will sort the values of the 4...

  • Thread starter Thread starter Joanna<3
  • Start date Start date
J

Joanna<3

Guest
...user-inputted variables: a, b, c, d? It is in ascending order..without the use of arrays, looping statements, and any methods/classes and will only use 4 variables..

Example:
inputs: a = 5, b = 3, c = 9, d = 0
output: a = 0, b = 3, c = 5, d = 9
 
Back
Top