This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
|
package main
|
|
|
|
object main extends App{
|
|
println("Chapter 6: Functional Objects\n")
|
|
val fraction = Rational(1)-Rational(2)+Rational(3,2)/Rational(1,2)+3
|
|
println(s"$fraction")
|
|
} |