public class Zero {
public static void main(String args[]) {
for(int i=0;i<=4;i++)
{
for(int j=0;j<=4;j++)
{
if(i%2==0)
System.out.print(1);
else
System.out.print(0);
}
System.out.println(" ");
}
}
}
public static void main(String args[]) {
for(int i=0;i<=4;i++)
{
for(int j=0;j<=4;j++)
{
if(i%2==0)
System.out.print(1);
else
System.out.print(0);
}
System.out.println(" ");
}
}
}
No comments:
Post a Comment