Skip to content

Instantly share code, notes, and snippets.

@khrtz
Last active November 21, 2015 21:10
Show Gist options
  • Save khrtz/161b1083e6b92dc92fa0 to your computer and use it in GitHub Desktop.
Save khrtz/161b1083e6b92dc92fa0 to your computer and use it in GitHub Desktop.
scala tutorial
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