Scala if statement
Conditional statement
1
if (a>1)
2
print("a is greater than 1")
3
else if (a==1)
4
print("a is equal to 1")
5
else
6
print("a is less than 1")
Copied!
Last modified 1yr ago
Copy link