Hi
the code output is correct, yet i still get the error.
Can you please help me?
thanks
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
int x= Math.min(a,b);
int x1 = Math.min(x,c);
int y = Math.max(a,b);
int y1 = Math.max(y,c);
int z;
if (a > b && a < c)
z=a;
else if (b > a && b < c)
z= b;
else z= c;
System.out.println(y1+" "+z+" "+x1);
}
}