Advertisement
Ferix

RSONested#4

Nov 30th, 2020
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement