Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
3d
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' //Lokeshreddy 7002 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { System.out.println("Flody's triangle pattern is"); int i,j,rows=5; int count=1; for(i=1;i<=rows;i++) { for(j=1;j<=i;j++) { if((i+j)%2==1) System.out.println("0"); else System.out.println("1"); } System.out.println(); } System.out.println(); } }
run
|
edit
|
history
|
help
0
Catalan number optimised
Firstproject
data
String Class Methods
qwe
asdasd
classwork
fizzbuzz
right swastik
[a-zA-Z ]{0,12}