Question: Write a method to display a big X using ascii characters. The method header is: public static void display(int n) where the n is how

Write a method to display a big "X" using ascii characters. The method header is: public static void display(int n) where the n is how many rows tall it is. You can use this code as a template for your solution: import java.util.Scanner: public class Pattern { public static void main (String[] args){ Scanner input = new Scanner (System in): System.out.print("Enter number of lines, n: "): int n = input.nextInt(): displayPattern (n): } public static void displayPattern (int n) { //Fill in code here } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
