Advertisement
0tamega

Untitled

Jan 21st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. int a=0, b=7;
  2. for (int x=0; x<8; x++){
  3. for (int y=0; y<8; y++){
  4. if (x != 4){
  5. if (y == a || y == b){
  6. System.out.print("*");
  7. } else {
  8. System.out.print(" ");
  9. }
  10. }
  11. }
  12. a++;
  13. b--;
  14. if (x != 4){
  15. System.out.println("");
  16. }
  17. }
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement