How to Add Two Numbers in Scala

Add Two Numbers in Scala

In this example, we will show you how to add two numbers in scala program language. The sample program and output has been attached in the same post.

Example Code

Output

Enter the first number :
20
Enter the second number :
30
The Result is : 50