mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 03:09:47 -06:00
6 lines
112 B
Scala
6 lines
112 B
Scala
// Type your code here, or load an example.
|
|
object Square {
|
|
def square(num: Int): Int =
|
|
num * num
|
|
}
|