Skip to content

Instantly share code, notes, and snippets.

@coolsasindu
Created March 25, 2021 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coolsasindu/b8147a7455c4f3e150e55de7582f57ec to your computer and use it in GitHub Desktop.
Save coolsasindu/b8147a7455c4f3e150e55de7582f57ec to your computer and use it in GitHub Desktop.
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