-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSystemInput.scala
15 lines (15 loc) · 963 Bytes
/
SystemInput.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import scala.io.StdIn._
object SystemInput extends App {
def main(args:String){
var x = false
while (!x) {
var name = readLine("Enter the name")
println("Enter the score")
var l = readDouble()
println("you recieved "+(if (l>90) "Your Grade is A" else if(l>80) "Your Grade is B"
else if (l>70) "Your Grade is C" else "Your Fail"))
println("Do you want to continue 'yes' for False, 'no' for True")
x = readBoolean()
}
}
}