Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
3.c
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' // Razak-7051 import java.util.*; import java.lang.*; class Rextester { public static void main(String[] args) { System.out.println("Floyd'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.print("0"); else System.out.print("1"); } System.out.println(); } System.out.println(); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
massive
Central Inteligence Agency
Escaping Literals II
string reverse program without arry in java
Magic No.
strstr() function / indexOf() function
JAVA # Cümleye Boşluk Bırakma 2
java polymorhism
2c
several at a time
Please log in to post a comment.