
Java
Java public class Staircase public static void main(String args) int n 5; // number of steps for (int i 1; i n; i) for (int j 1; j i; j) System.out.print("");
<code> System.out.println(); </code>
This code will print a staircase with 5 steps using "" symbols. You can adjust the value of n to change the number of steps in the staircase.
Copyright © 2026 eLLeNow.com All Rights Reserved.