Description Usage Arguments Details Value Examples
Reads an integer/number from the prompt
1 2 | readInteger(msg='', pt=FALSE)
readNumber(msg='', pt=FALSE)
|
msg |
Prompt to be displayed |
pt |
Use portuguese messages? |
These functions print a prompt and repeats until the correct type of
input is read and returns the input. The comments and messages can be
displayed in portuguese if option pt
is set to TRUE
.
readInteger
expects an integer from the user and
readNumber
a number (float or integer).
The number/integer read.
1 2 3 4 | print(readInteger("Enter an integer: "))
print(readNumber("Enter a number: "))
print(readInteger("Entre com um inteiro: ", pt=TRUE))
print(readNumber("Entre com um numero: ", pt=FALSE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.