Program to demonstrate the difference between to and until in a for loop in Scala