User Input Functions
These functions are used to take input from the user via the terminal(or command prompt).
SRON provides four functions for it:
1. inputInt():
{
name : Main
Int val1 = inputInt("Enter two values :- ")
Int val2 = inputInt()
println(val1)
println(val2)
}Terminal :
2. inputDouble():
Terminal :
3. inputChar():
Terminal :
4. inputString():
Terminal :
Last updated