// Exaple // // goal: read two scores and out average // import java.util.Scanner; class TwoScores { public static void main(String[] args) { Scanner input = new Scanner(System.in); int score1, score2; System.out.println("Input your scores "); score1 = input.nextInt(); score2 = input.nextInt(); double avg = (score1+score2)/2.0; System.out.println("The avg is " + avg); } }