Advertisement
Ferix

RSONested#6

Dec 2nd, 2020
417
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 =5; x!=0; x--){
  4.             int y = 1;
  5.             while(y != x){
  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