I tried multiple ways but still can't figure it out. I'm trying not to use any arrays because i haven't gotten into those yet.
Would appreciate some help!
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String a = input.readLine();
String b = input.readLine();
String c = input.readLine();
int d = Integer.parseInt(a);
int e = Integer.parseInt(b);
int f = Integer.parseInt(c);
if(d<e && e<f)
System.out.println(f+" "+e+" "+d);
if(d<f && f<e)
System.out.println(e+" "+f+" "+d);
if(e<d && d<f)
System.out.println(f+" "+d+" "+e);
if(e<f && f<d)
System.out.println(d+" "+f+" "+e);
if(f<e && e<d)
System.out.println(d+" "+e+" "+f);
if(f<d && d<e)
System.out.println(e+" "+d+" "+f);
}
}