// Name : Matthew Reeves // This is a sample program to perform math problems import java.util.Scanner; public class mdreeves_BasicMath { public static void main ( String args[] ) { Scanner input = new Scanner ( System.in ); int A, B, C, add, div, mod, pro, dif; System.out.print ( "Enter first integer: "); A = input.nextInt(); System.out.print ( "Enter second integer: "); B = input.nextInt(); System.out.print ( "Enter third integer: "); C = input.nextInt(); add = A + B + C; div = A / C; mod = A % C; pro = A * B * C; dif = A - B; System.out.printf ( "ADD:%d\nDIV:%d\nMOD:%d\nPRO:%d\nDIF:%d\n", add, div, mod, pro, dif); } }