public class Ch7Num4 {

	/**
	 * Shows the quotient and remainder when m is divided by n.
	 * @param m the dividend
	 * @param n the divisor
	 */
	public static void divide(int m, int n) {
		System.out.print(m + " / " + n + " = ");

		int q = 0; //store the quotient in this variable
		int r = 0; //store remainder in this variable
	
		// your algorithm goes below //////////////////////////






		// end of your algorithm //////////////////////////////

		System.out.println(q + " R" + r);
	}


	public static void main(String[] args) {

		//alter these two values to test your algorithm:
		int a = 13;	
		int b = 2;

		//show result of dividing a by b:
		divide(a,b);

	}

}
