Answers for "how to take user input in Scala"

0

how to take user input in Scala

/*
This is for SCALA!

Anyways, lets say you want to get the user's name. How will you get it? 
This is how you will do it:
*/
var name: String = ""
name= readLine("What's your name?") //getting the input!

println("Hello, "+name)
Posted by: Guest on January-30-2021

Browse Popular Code Answers by Language