Assignment 89

import java.util.Random;

public class SimpleBlackjack
{
	public static void main ( String[] args )
	{
		Random r = new Random();

		int a = 1 + r.nextInt(10);
		int b = 1 + r.nextInt(10);
		int c = 1 + r.nextInt(10);
		int d = 1 + r.nextInt(10);
        
        System.out.println("Simple Blackjack\n\nYou drew " +a+ " and " +b+ ".\nYour total is " +(a+b)+ ".\n\nThe dealer has " +c+ " and " +d+ ".\nDealer's total is " +(c+d)+ ".\n");
        
        if ((a+b) > (c+d))
            System.out.println("You win!");
        if ((a+b) < (c+d))
            System.out.println("You lose.");
        if ((a+b) == (c+d))
            System.out.println("Tie game.");
        
	}
}