Category:Night: Difference between revisions
Content added Content deleted
(Add example) |
(Fix formatting) |
||
Line 12: | Line 12: | ||
== Examples == |
== Examples == |
||
Here is the example used on the [https://github.com/DynamicSquid/Night GitHub page] (slightly modified): |
Here is the example used on the [https://github.com/DynamicSquid/Night GitHub page] (slightly modified): |
||
<lang night> |
<lang night>print("Hello World!\n"); |
||
print("Hello World!\n"); |
|||
// this is a comment |
// this is a comment |
||
Line 44: | Line 43: | ||
int number = add(2, 3) + 4; |
int number = add(2, 3) + 4; |
||
print(number + "\n"); |
print(number + "\n");</lang> |
||
⚫ | |||
Output: |
Output: |
||
⚫ | |||
<code> |
|||
Hello world! |
Hello world! |
||
Hi squid |
Hi squid |
||
Adding to numbers: |
Adding to numbers: |
||
9 |
9 |
||
</ |
</lang> |