// // If score>=90 out "A grade of A" // otherwise, out "B or below" // import java.util.Scanner; class VoteOrNot { public static void main(String[] args) { Scanner input = new Scanner(System.in); double age; System.out.print("Your age: "); age = input.nextDouble(); if (age>=18) { System.out.println("You can vote.\n\n\n"); } else { double time = 18-age; System.out.println("You can't vote. Wait for " + time + " years.\n\n\n"); } } }