You are viewing a single comment's thread. Return to all comments →
public static void staircase(int n) { char[] output = new char[n]; Arrays.fill(output, ' '); for (int i = n - 1; i >= 0; i--){ output[i] = '#'; System.out.println(new String(output)); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →