1
1
Fork 0
AtomicKotlinCourse/Preventing Failure/Check Instructions/Exercise 2/task.md

397 B

Check Instructions (#2)

Modify Exercise 1 by making the function parameters nullable, writing the new functions as:

  • fn(s: String?): String

  • gn(d: Double?): Double

The starter code in main() tests fn() and gn().

This task doesn't contain automatic tests, so it's always marked as "Correct" when you run "Check". Please compare your solution with the one provided!