How to resolve the algorithm Hello world/Text step by step in the YAMLScript programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Hello world/Text step by step in the YAMLScript programming language
Table of Contents
Problem Statement
Display the string Hello world! on a text console.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Hello world/Text step by step in the YAMLScript programming language
Source code in the yamlscript programming language
(println "Hello world!")
(say "Hello world!")
say("Hello world!")
say("Hello world!"):
say:
- "Hello world!"
say: ["Hello world!"]
say: "Hello world!"
say("Hello"): "world!"
say: ["Hello", "world!"]
# The . at the start of a value is way to indicate that the value is a scalar (string).
# Without the . this would be invalid YAML(Script).
say: ."Hello", "world!"
You may also check:How to resolve the algorithm Sequence: smallest number with exactly n divisors step by step in the AWK programming language
You may also check:How to resolve the algorithm Call a function step by step in the VBA programming language
You may also check:How to resolve the algorithm Variables step by step in the D programming language
You may also check:How to resolve the algorithm Variables step by step in the MATLAB / Octave programming language
You may also check:How to resolve the algorithm Test a function step by step in the Scheme programming language