Nested for-loops

Report a typo

What is the output of this program?

for (i in 1..3) {
    for (j in 1..i) {
        print(j)
    }
}

Write the answer as a number. For example: 123

Enter a number
___

Create a free account to access the full topic