Ring/Lessons/HelloWorld

Hello World
The next program prints the Hello World message on the screen (std-out).

Run the program
to run the program, save the code in a file, for example : hello.ring then from the command line or terminal, run it using the ring interpreter

Not Case-Sensitive
Since the Ring language is not case-sensitive, the same program can be written in different styles

.. tip:: It's better to select one style and use it in all of the program source code

Multi-Line literals
Using Ring we can write multi-line literal, see the next example

Also you can use the nl constant to insert new line and you can use the + operator to concatenate strings

.. note:: nl value means a new line and the actual codes that represent a newline is different between operating systems

Getting Input
You can get the input from the user using the give command

No Explicit End For Statements
You don't need to use ';' or press ENTER to separate statements. The previous program can be written in one line.

Writing Comments
We can write one line comments and multi-lines comments

The comment starts with # or //

Multi-lines comments are written between /* and */

.. note:: Using // to comment a lines of code is just a code style.