Guest User

Untitled

a guest
Feb 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1.  
  2. public class Main
  3. {
  4. public static void main( String args[] )
  5. {
  6. int square = 6;
  7. int line = 0;
  8. while (line<=square) {
  9. int s = 1;
  10. while ( s <square-line ){
  11. System.out.print( " " );
  12. s = s + 1;
  13. while (s<=square) {
  14. System.out.print("*");
  15. s = s + 1;
  16. }
  17. System.out.println("");
  18. line=line+1;
  19. }
  20.  
  21. }
  22.  
  23. }
  24. }
Add Comment
Please, Sign In to add comment