added assignment 1

This commit is contained in:
2025-02-21 15:24:53 +01:00
parent 1958945053
commit 8639e2854a
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
def sqr(x: Double): Double = x * x
def pow4(x: Double): Double = sqr(x) * sqr(x)
sqr(3)
sqr(7)
sqr(0.5)
sqr(-2)
pow4(2)
pow4(10)
// def bar(x: Int, y: Boolean) = "Hello"
// A String