// // Assignment 1 // Author: John Wang // Due: Sept. 12, 2016 // Instructor: DR. Wang // Goal: read 10 pos. numbers and find smallest and total // import java.util.Scanner; class Assignment1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int num; int total = 0; int min = input.nextInt(); // first total += min; for(int i=0; i<9; i++) { num = input.nextInt(); // read the rest total += num; if(num < min) min = num; } // out System.out.println("Min = " + min); System.out.println("Total = " + total); System.out.println("\n\n\nDone.\n\n\n"); } }