Result of program

Report a typo

scala> def plus(a: Int, b: Int) = b + a
plus: (a: Int, b: Int)Int
scala> def inv(a: Int) = -a
inv: (a: Int)Int
scala> val a = 1
a: Int = 1
scala> val b = 3
b: Int = 3
scala> plus(plus(a, a), inv(plus(b, inv(a))))
???

Enter the result of the expression with plus and inv functions.

Enter a number
___

Create a free account to access the full topic