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:

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!!