Assignemnt #25 A Dumb Calculator
Code
///Name: Morgan Kaplan
///Period: 5
///Project Name: ADumbCalculator
///File Name: ADumbCalculator.java
import java.util.Scanner;
public class ADumbCalculator
{
public static void main( String[] args)
{
Scanner momo= new Scanner(System.in);
int First, Second, Third;
System.out.println( " What is your first number? " );
First=momo.nextInt();
System.out.println( " What is your second number? " );
Second=momo.nextInt();
System.out.println( " What is your third number? " );
Third=momo.nextInt();
System.out.println( "So (" + First + " + " + Second + " + " + Third + ")/2 is " + (( First + Second + Third)/2)+ " " );
}
}
Picture of Output