Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import java.io.*;
  2. public class asdf
  3. {
  4. public static void main(String args[])throws IOException
  5. {
  6. int a[][]=new int[4][5];
  7. for(int i=0; i<4; i++)
  8. {
  9. for(int j=0; j<5; j++)
  10. {
  11. if(i==0 || i==3)
  12. {
  13. if(j==2 || j==3)
  14. {
  15. a[i][j]=1;
  16. }
  17. }
  18. if(i==1 || i==2)
  19. {
  20. if(j==1 || j==4)
  21. {
  22. a[i][j]=1;
  23. }
  24. }
  25. }
  26. }
  27. for(int i=0; i<4; i++)
  28. {
  29. for(int j=0; j<5; j++)
  30. {
  31. System.out.print(a[i][j]);
  32. }
  33. System.out.println();
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement