From 534844d3f2195e56ee239b30ccaafa17283dd0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Przemys=C5=82aw=20Pluta?= Date: Fri, 27 Mar 2020 17:58:13 +0100 Subject: [PATCH] Updated smnp.io (markdown) --- smnp.io.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/smnp.io.md b/smnp.io.md index de2d7a9..b8340be 100644 --- a/smnp.io.md +++ b/smnp.io.md @@ -1,8 +1,11 @@ # Functions -## `print(...items)` +## print +``` +print(...items) +``` Prints the string representation of given items to standard output. -### Example +#### Example ``` print("a"); print("b"); @@ -12,10 +15,13 @@ print("c"); # abc ``` -## `println(...items)` +## println +``` +println(...items) +``` The same as `print(...)` however ends each line new line character (`\n`). -### Example +#### Example ``` println("a"); println("b"); @@ -27,10 +33,13 @@ println("c"); # c ``` -## `read(prompt: string = "")` +## read +``` +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 + "!");