You are viewing a single comment's thread. Return to all comments →
Why so many tables? One is enough:)
try (Scanner s = new Scanner(System.in)) { int n = s.nextInt(); char[] a = new char[n]; Arrays.fill(a, ' '); for (int i = n-1; i >= 0; i--) { a[i] = '#'; System.out.println(new String(a)); } }
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 →
Why so many tables? One is enough:)