Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class asdf
- {
- public static void main(String args[])throws IOException
- {
- int a[][]=new int[4][5];
- for(int i=0; i<4; i++)
- {
- for(int j=0; j<5; j++)
- {
- if(i==0 || i==3)
- {
- if(j==2 || j==3)
- {
- a[i][j]=1;
- }
- }
- if(i==1 || i==2)
- {
- if(j==1 || j==4)
- {
- a[i][j]=1;
- }
- }
- }
- }
- for(int i=0; i<4; i++)
- {
- for(int j=0; j<5; j++)
- {
- System.out.print(a[i][j]);
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement