龍語言入門/課程/獲取輸入
外觀
< 龍語言入門
我們可以使用 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