At the previous part i talked about downloading the official release for windows, this part i will start in programming with Ring. (Video is coming soon)
to print a message like ‘Hello, World!’ we use the words ‘See‘ or ‘see‘ or ‘SEE‘ all will do the job.
see 'Hello, World!' See 'Hello, World!' SEE 'Hello, World!'
Hello, World!Hello, World!Hello, World!
Yeah i know, why they’re beside each other, it’s simple actually. You just need to add one more thing at the end of your text … like this:
see 'Hello, World!' + nl
nl means a newline, then our output will become:
Hello, World! Hello, World! Hello, World!
see "Hello It's me."
Hello It's me.
Comparing to Python this is the print function, so what about the raw_input/input ?
we use the word “give” to get user’s input:
see "What does 5 + 10 equal ?" + nl give answer see "Your answer is " + answer
easy .. ha?, well .. in Ring we can make it more easier like this:
see "What is the purpose of life ?" + nl give answer see answer
Yes, just like that!. Test it yourself and compare the results.