Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package e9lul;
- public class E9lul {
- public static void main(String[] args) {
- //int szer=5, wysokosc=5;
- // for(int i=0;i<wysokosc;i++){
- // for(int k=0;k<szer;k++)
- // System.out.print("*");
- // System.out.println( );
- // }
- int wymiar=5;
- for(int j=0;j<wymiar;j++){
- for(int i=0;i<wymiar;i++)
- if(i < wymiar - j - 1)
- System.out.print(" ");
- else
- System.out.print("*");
- System.out.println( );
- }
- System.out.println( );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement