Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //uses nested for loops to make stair step patter with pound
- public static void main(String[] args)
- {
- final int NUM_STEPS = 6;
- for (int r = 0; r< NUM_STEPS; r++)
- {
- for (int c = 0; c < r; c++)
- {
- System.out.println(" ");
- }
- System.out.println("#");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement