Updated Basics (markdown)

Stone_Red
2022-03-24 00:43:13 +01:00
parent 89bc0ed5e6
commit 60a5e46404
+5 -5
@@ -1,6 +1,6 @@
# Hello World # Hello World
Creating a hello world program in YesNt is very sample: Creating a hello world program in YesNt is very simple:
``` ```
cwl Hello World! cwl Hello World!
``` ```
@@ -10,7 +10,7 @@ cwl Hello World!
# Printing to the console # Printing to the console
There are two statements which can print text to the console There are two statements which can print text to the console
## `cw` (Console Write)\ ## `cw` (Console Write)
Prints everything to the console which comes after it Prints everything to the console which comes after it
### Example ### Example
@@ -22,7 +22,7 @@ cw World
### Output: ### Output:
`HelloWorld` `HelloWorld`
## `cwl` (Console Write Line)\ ## `cwl` (Console Write Line)
Prints everything to the console which comes after it and appends `\n` to it Prints everything to the console which comes after it and appends `\n` to it
### Example ### Example
@@ -41,7 +41,7 @@ World
# Reading from the console # Reading from the console
You can read either a whole line or a single char from the console using the following statements: You can read either a whole line or a single char from the console using the following statements:
## `%cr` (Console Read)\ ## `%cr` (Console Read)
Replaces the statement through a single character read from the console Replaces the statement through a single character read from the console
### Example ### Example
@@ -55,7 +55,7 @@ cwl %cr
### Output ### Output
`A` `A`
## `cwl` (Console Write Line)\ ## `cwl` (Console Write Line)
Replaces the statement through a whole line read from the console Replaces the statement through a whole line read from the console
### Example ### Example