Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class cyklusmurin
- {
- public static void main(String[] args)
- {
- int x,y ;
- x=5;
- for(int i = 1; i <= x; i++)
- {
- for(int j = 1; j <= x; j++)
- {
- if((j==1)||(j==x)||(i==(int)(x/2+1)))
- System.out.print("H");
- else
- System.out.print(" ");
- }
- System.out.println();
- }
- }
- }
Add Comment
Please, Sign In to add comment