Last active
November 21, 2015 21:10
-
-
Save khrtz/161b1083e6b92dc92fa0 to your computer and use it in GitHub Desktop.
scala tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Test { | |
def main(args: Array[String]) { | |
var x = 30; | |
if( x < 10 ){ | |
println("Value of X is 10"); | |
} else if( x == 20){ | |
println("Value of X is 20"); | |
} else if( x == 30 ){ | |
println("Value of X is 30"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment