SHARE
TWEET

Untitled

a guest Feb 27th, 2020 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * ForNestedPractice
  3.  */
  4. public class ForNestedPractice {
  5.  
  6.     public static void main(String[] args) {
  7.  
  8.         for (int i = 1; i <= 6; i++) {
  9.             for (int z = 0; z < i; z++) {
  10.                 System.out.print(" ");
  11.             }
  12.  
  13.             for (int y = 6; y > i; y--) {
  14.                 System.out.print(i);
  15.                 // System.out.print(y);
  16.             }
  17.  
  18.             System.out.println("");
  19.         }
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top