Assignemnt #124 and Summing Three Numbers
Code
///name: Mark Katz
///period: 6
///Program name: Summing Three Numbers
///file name: STN.java
///date finished: 5/30/16
import java.io.File;
import java.util.Scanner;
public class STN {
public static void main(String[] args) throws Exception {
Scanner fileIn = new Scanner(new File("3nums.txt"));
int num1 = fileIn.nextInt();
int num2 = fileIn.nextInt();
int num3 = fileIn.nextInt();
int sum = num1 + num2 + num3;
System.out.println(num1 + " + " + num2 + " + " + num3 + " = " + sum);
}
}