Hi,
You can use a simple mathematical calculation to execute and calculate an example and get the result using this example below:
scala> 1+2
You can see this example below and try this in Scala shell:
![](https://www.edureka.co/community/?qa=blob&qa_blobid=14641807116658785595)
Hope it helps!
If you want to know more about Apache Spark Scala, It's highly recommended to go for Apache Spark certification course today.
Thanks!!