// 2. Taking input from a user by asking the user for the triangle's height System.out.print("Enter a positive integer for the triangle's height: "); ...