Ferix

RSONested#4

Nov 30th, 2020
460
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MyClass {
  2.     public static void main(String args[]) {
  3.         for(int x =1; x<6; x++){
  4.             int y = x;
  5.             while(y != 0){
  6.                 System.out.print("*");
  7.                 y--;
  8.             }
  9.             System.out.print("\n");
  10.         }
  11.     }
  12. }
RAW Paste Data