Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a=0, b=7;
- for (int x=0; x<8; x++){
- for (int y=0; y<8; y++){
- if (x != 4){
- if (y == a || y == b){
- System.out.print("*");
- } else {
- System.out.print(" ");
- }
- }
- }
- a++;
- b--;
- if (x != 4){
- System.out.println("");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement