Assignemnt #124 and ThreeNumbers

Code

/// name: Leila Ordukhani
/// period: 6
/// program name: One Hundred and four Program
/// file name: ThreeNumbers.java
/// date finished: 5/25/16

    import java.io.File;
    import java.util.Scanner;
    
    public class ThreeNumbers {
    
        public static void main(String[] args) throws Exception {
            
            int a, b, c;
            
            Scanner fileIn = new Scanner(new File("3nums.txt"));
            
            a = fileIn.nextInt();
            b = fileIn.nextInt();
            c = fileIn.nextInt();
            
            fileIn.close();
            
            int sum = a + b + c;
            System.out.println("\n" + a + " + " + b + " + " + c + " = " + sum);
            System.out.println();
        }
    }
  

Picture of the output

Assignment 124