Assignment #124

Code

    
    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: threeNums
    ///File Name: threeNums.java
    ///Date: 5/12/16
    
    
    
    import java.util.Scanner;
    import java.io.File;
    
    public class threeNums
    {
        public static void main(String[] args ) throws Exception {
        
            Scanner fileIn = new Scanner(new File ("3nums.txt") );
            int a, b, c;
            
            a = fileIn.nextInt();
            b = fileIn.nextInt();
            c = fileIn.nextInt();
            
            System.out.println( a + " + " + b + " + " + c + " = " + (a+b+c) );
        }
    }

            


    

Picture of the output

Assignment 124