Assignment 25, Dumb Calculator
Code
///Name: Stella Koliavas
///Period: 5
///Program Name: Dumb Calculator
///File Name: DumbCalc.java
///Date Finshed: 10/13/15
import java.util.Scanner;
public class DumbCalc
{
public static void main (String[] args)
{
double First, Second, Third;
Scanner siri = new Scanner(System.in);
System.out.print("What's your first number");
First = siri.nextDouble();
System.out.print("Second number?");
Second = siri.nextDouble();
System.out.print("Third number?");
Third = siri.nextDouble();
System.out.print( " " +First+ " + " + Second + " + " + Third+ " / 2 is " + (First/2 + Second/2 + Third/2) );
}
}
Picture of the output