Assignment #71 and Shorter Double Dice

Code

    ///Name: Tim Gibson
    ///Period: 6
    ///Project Name: Shorter Double Dice
    ///File Name: Dice3.java
    ///Date Finished: 10/23/15
        
    import java.util.Random;
    
    public class Dice3
    {
        public static void main ( String[] args )
        {
            Random r = new Random();
            
            System.out.println( "HERE COME THE DICE!" );
            
            int a, b, c;
            
            do
            {
                 a = 1 + r.nextInt(6);
                 b = 1 + r.nextInt(6);
                 c = a + b;
                 System.out.println( "\nRoll #1: " + a + "\nRoll #2: " + b + "\nThe total is " + c + "!" );
            } while ( a != b );
        }
    }
        

Picture of the output

Assignment71