Created
March 25, 2021 15:59
-
-
Save coolsasindu/b8147a7455c4f3e150e55de7582f57ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Art4{ | |
public static void main(String args[]){ | |
/* | |
0 | |
00 | |
000 | |
0000 | |
*/ | |
int y = 0; | |
while(y<10){ // main | |
int x =0; | |
// start | |
while(x <= y){ | |
System.out.print("*"); | |
x++; | |
} //end | |
y++; | |
System.out.println(); | |
} // end main | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment