Simple math programs

The point of this is to (i) practice writing more programs, (ii) begin to see the difference between int and double, and (iii) to use the basic math operators.

Take this program:

public class IntMath {
	public static void main (String args[]) {
		int a = 20;
		int b = 9;
		System.out.println("a is " + a); 
		System.out.println("b is " + b); 
		
		int c = a + b; 
		System.out.println("a + b is " + c); 
		c = a - b;
		System.out.println("a - b is " + c);
		
	} //end of main
} // end of class

and change it so that it uses all 5 operations: +, -, *, /, %
(you can set 'a' and 'b' to be any numbers greater than 10).

Now write a version called DoubleMath and just do the same using doubles.
Note: enter a double number as 20.0 and 9.0

Are the answers what you expected?