Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Created September 28, 2014 18:37
Show Gist options
  • Save ntakouris/4cf4e69cf6a4a2d10692 to your computer and use it in GitHub Desktop.
Save ntakouris/4cf4e69cf6a4a2d10692 to your computer and use it in GitHub Desktop.
Dis is yours fleva
object main {
def main(args: Array[String]){
println("Insert price here:");
val price = Console.readInt;
println("20% of inserted price is: " + (price * 20 / 100))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment