Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
motifCatur
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { Scanner input = new Scanner(System.in); // System.out.print("Masukkan ukuran catur"); int size = input.nextInt(); cetakCatur(size); } public static void cetakCatur(int size) { for (int i=1; i<=size; i++){ for (int j=1; j<=size; j++){ if((i+j)%2 ==0){ System.out.print("#"); } else { System.out.print(" "); } } System.out.println(); } } }
run
|
edit
|
history
|
help
0
cuboid volume
Equal_HashCode_TEST --- imporatnt concept about hashing
Counter.java
K closest points
Memory cleanup
else if statement
t
Bbs
pk3
1.6