Varasku

choinka w całość

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