/*3. Write a java program to read an integer from the user. The entered integer is the number of lines of the following pattern, if the user enters 4. ******* ***** *** * If the user enters 5, the following pattern should be printed: ********* ******* ***** *** * You are only allowed to use System.out.print("*") and System.out.println() to print the pattern.*/ import java.util.Scanner; public class Dot2 { public static void main(String []args) { Scanner keyboard = new Scanner(System.in); int n=0, m=0; System.out.println("Please enter the number"); n = keyboard.nextInt(); while (n > m) { while (n < m) { System.out.print("*"); m = ((n * 2) - 1); } } } }