Numeric casts with as
Type Conversions · using_as
You are in type conversions, exercise using_as.
Goal: make this exercise compile and pass its tests.
Open the editor on the right, edit the code, and press Run. Reveal the Hint if you get stuck. Peek at the Solution as a last resort.
using_as.rsedition 2021 · tests
Output
Run your code to see compiler output here. Use ⌘↵ to run.