Advertisement
476179

stairstep

Nov 26th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //uses nested for loops to make stair step patter with pound
  2.  
  3. public static void main(String[] args)
  4. {
  5. final int NUM_STEPS = 6;
  6. for (int r = 0; r< NUM_STEPS; r++)
  7. {
  8. for (int c = 0; c < r; c++)
  9. {
  10. System.out.println(" ");
  11. }
  12. System.out.println("#");
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement