Assignment #131 and Create Your Own Array

Code

    /// Name: Brendan Baird
    /// Period: 6
    /// Program Name: Create Your Own Array
    /// File Name: CreateArray.java
    /// Date Finished: 5/9/2016
    
    public class CreateArray {

        public static void main(String[] args) {
        
            int[] arr = {50, 13, 5};
            
            System.out.println(arr[0] + " " + arr[1] + " " + arr[2]);
            System.out.println(arr[0] + arr[1] + arr[2]);
            System.out.println(arr[0] - arr[1] - arr[2]);
            System.out.println(arr[0] * arr[1] * arr[2]);
        }
    }
    

Picture of the output

Assignment 131