龙语言入门/课程/获取输入
外观
< 龙语言入门
我们可以使用 readln 函数从键盘获取输入。
语法
select "std"
a = readln()
示例
select "std"
select "types"
showln "Enter the first number :"
a = int(readln())
showln "Enter the second number :"
b = int(readln())
showln "Sum is : " + (a + b)
输出
Enter the first number : 3
Enter the second number : 4
Sum is : 7