title: Numbers in descending order in Java using if/else only
body: <p>How can I create a java program using only if / else to order 3 numbers in descending order. I can not use for processes or array. Numbers are entered by the user.
  Here's what i have so far. What should i do, is the user enters two integers that are the same? The code can only display one output.</p>
  
  <pre><code>    import java.util.Scanner; 
  public class DescendingOrder
  {
     public static void main(String [] args)
     {
        //variable dec.
        int a;
        int b;
        int c;
        Scanner kbd = new Scanner(System.in);
  
        //user prompt
        System.out.println("Please enter three integers");
        a=kbd.nextInt();
        b=kbd.nextInt();
        c=kbd.nextInt();
  
        //program output
        if (a&gt;=b &amp;&amp; b&gt;=c &amp;&amp; a&gt;=c)
        {
           System.out.println("a b c");
        }
  
        if (a&gt;=c &amp;&amp; c&gt;=b &amp;&amp; a&gt;=b )
        {   
           System.out.println("a c b");
        }   
  
        if (b&gt;=a &amp;&amp; a&gt;=c &amp;&amp; b&gt;=c)
        {
           System.out.println("b a c");
        }
  
        if (b&gt;=c &amp;&amp; c&gt;=a &amp;&amp; b&gt;=c)
        {      
            System.out.println("b c a");
        }
  
        if(c&gt;=a &amp;&amp; a&gt;=b &amp;&amp; c&gt;=b)
        {
            System.out.println("c a b");
        }
  
        if (c&gt;= b &amp;&amp; b&gt;=a &amp;&amp; c&gt;=a)
        {
           System.out.println("c b a"); 
        }   
  
  
     }
  }
  </code></pre>