You are viewing a single comment's thread. Return to all comments →
Works, but it's a bit too much work. For input as trivial as this, val n = readLine().toInt should suffice.
val n = readLine().toInt
Seems like cookies are disabled on this browser, please enable them to open this website
Pascal's Triangle
You are viewing a single comment's thread. Return to all comments →
Works, but it's a bit too much work. For input as trivial as this,
val n = readLine().toInt
should suffice.