diff --git a/scala/42.scala b/scala/42.scala new file mode 100644 index 0000000..9092cce --- /dev/null +++ b/scala/42.scala @@ -0,0 +1,10 @@ +object Forty2 { + + def main(args: Array[String]): Unit = { + while (true) { + var x = StdIn.readInt() + println(x) + if (x == 42) return + } + } +} \ No newline at end of file