Advertisement
Varasku

Połówka choinki z prawej strony

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