Assignment #25 A Dumb Calculator
Code
/// Name: Lacey Reese
/// Period: 5
/// Program Name: ADumbCalculator
/// File Name: ADumbCalculator.java
/// Date Finished 10/6/2015\
import java.util.Scanner;
public class ADumbCalculator
{
public static void main( String[] args)
{
Scanner Lacey= new Scanner(System.in);
int First, Second, Third;
System.out.println( " What is your first number? " );
First=Lacey.nextInt();
System.out.println( " What is your second number? " );
Second=Lacey.nextInt();
System.out.println( " What is your third number? " );
Third=Lacey.nextInt();
System.out.println( " So ( " + First + " + " + Second + " + " + Third + ")/2 is " + (( First + Second + Third) /2) + "." );
}
}
Picture of the output
// interesting