diff --git a/5-loops/Shapes.kt b/5-loops/Shapes.kt index 7bee3b1..9bfcaa9 100644 --- a/5-loops/Shapes.kt +++ b/5-loops/Shapes.kt @@ -8,7 +8,7 @@ fun main() { // Write your code below for (i in 1..sqSide) { for (j in 1..sqSide) { - if (i % 2 == 0 && j % 2 == 0 || i % 2 == 1 && j % 2 ==1) { + if (i % 2 == j % 2) { print(sqChar1) } else { print(sqChar2)