output

Output

In the next example, we will see a use case of the package inOut, which is responsible for providing methods to capture input from the user from the default input, and also outputting values to the default output.

package program import inOut object Program public func run { var String name = “Newton”; Out println: name; } end

In a similar way, we can use

Out print: name;

to avoid going to the next line. If you’re familiar with Java, it is basically the same.