Updated smnp.io (markdown)
@@ -2,7 +2,7 @@
|
||||
## `print(...items)`
|
||||
Prints the string representation of given items to standard output.
|
||||
|
||||
Example:
|
||||
### Example
|
||||
```
|
||||
print("a");
|
||||
print("b");
|
||||
@@ -15,7 +15,7 @@ print("c");
|
||||
## `println(...items)`
|
||||
The same as `print(...)` however ends each line new line character (`\n`).
|
||||
|
||||
Example:
|
||||
### Example
|
||||
```
|
||||
println("a");
|
||||
println("b");
|
||||
@@ -30,7 +30,7 @@ println("c");
|
||||
## `read(prompt: string = "")`
|
||||
Reads an input from user as a string. The optional parameter is the prompt displayed on the standard output.
|
||||
|
||||
Example:
|
||||
### Example
|
||||
```
|
||||
name = read("Provide your name: ");
|
||||
println("Hello, " + name + "!");
|
||||
|
||||
Reference in New Issue
Block a user