What could be an alternate way to print the cells of a table other than using a nested loop.
for(i in 1..2){
for(j in 1..2){
println("$i,$j")
}
}
Any approach using Pairs?
What could be an alternate way to print the cells of a table other than using a nested loop.
for(i in 1..2){
for(j in 1..2){
println("$i,$j")
}
}
Any approach using Pairs?