Just install Scala and figure out how to run files.
This page is going to be useful: Click me to find out where I take you to ;)
Exact command for running this (replace bracketed words with proper values):
scala run math.scala -- (number 1) (number 2) (operation)