Skip to content

Instantly share code, notes, and snippets.

@ayyucedemirbas
Created October 29, 2017 09:29
Show Gist options
  • Save ayyucedemirbas/2f79d6fa51e658b4da6244ee818e2127 to your computer and use it in GitHub Desktop.
Save ayyucedemirbas/2f79d6fa51e658b4da6244ee818e2127 to your computer and use it in GitHub Desktop.
package sirala;
import java.util.*;
public class Sirala {
public static void main (String[] args) {
//int bir = 'k', iki= 'j', uc = 'q';
Scanner enter= new Scanner(System.in);
int x = enter.nextInt();
int y = enter.nextInt();
int z = enter.nextInt();
if (x>y&&x>z && y>z)
{
System.out.println("x>y>z");
}
else if(x>y&&x>z&&z>y)
{
System.out.println("x>z>y");
}
else if(y>x&&y>z&&x>z)
{
System.out.println("y>x>z");
}
else if(y>x&&y>z&&z>x)
{
System.out.println("y>z>x");
}
else if(z>x&&z>y&&x>y)
{
System.out.println("z>x>y");
}
else if(z>x&&z>y&&y>x)
{
System.out.println("z>y>x");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment