// attempt to compute average population of three towns or cities // THIS VERSION HAS ERRORS! import java.util.Scanner; public class Average0 { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Enter the populations of three towns: "); int pop1 = in.nextInt(); int pop2 = in.nextInt(); int pop3 = in.nextInt(); int ave = pop1 + pop2 + pop3 / 3; System.out.println("Average population: " + ave); } }