Guest User

Untitled

a guest
Feb 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class cyklusmurin
  2. {
  3. public static void main(String[] args)
  4. {
  5. int x,y ;
  6. x=5;
  7.  
  8. for(int i = 1; i <= x; i++)
  9. {
  10. for(int j = 1; j <= x; j++)
  11. {
  12. if((j==1)||(j==x)||(i==(int)(x/2+1)))
  13. System.out.print("H");
  14. else
  15. System.out.print(" ");
  16. }
  17. System.out.println();
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment