Dumb Calculator
import java.util.Scanner;
public class dumbcalc
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int A;
int B;
int C;
int all;
System.out.println("What's your 1st number?");
A = keyboard.nextInt();
System.out.println("What's your 2nd number?");
B = keyboard.nextInt();
System.out.println("What's your 3rd number?");
C = keyboard.nextInt();
all = (A + B + C) / 2;
System.out.println("( "+A+" + "+B+" + "+C+" ) / 2 is... "+all );
}
}
Picture of the output