रेंडरिंगhi

लिखो

Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.

Writes a value to standard output.

Syntax: लिखो <expression>

Category#

output

Examples#

radix/corpus/nota/nota.fab (canonical · keyword)#

Writes a value to standard output.

# =============================================================================
# लिखो — Writes a value to standard output.
# =============================================================================
#
# What this teaches:
#   • Standard output — `लिखो` sends values to stdout, the primary output channel.
#   • Expression evaluation — Any expression can be passed, including variables and literals.
#
# Common mistakes:
#   • Confusing लिखो (stdout without trailing newline) with दिखाओ (diagnostic output with trailing newline).
#
# See also: देखो, चेताओ
# =============================================================================

# दिखाओ — diagnostic output statements
#
# दिखाओ literal-textus
# दिखाओ expr
# दिखाओ template with § interpolation
# दिखाओ labeled template with multiple § placeholders
#
# GRAMMAR:
#   outputStmt :← 'दिखाओ' expr (',' expr)*
#
# EXPECTED OUTPUT:
#   nota.expected — greeting, variable, formatted strings, sum, coordinates.

main {
    # Simple string output
    print "Salve, Munde!"

    # Variable output
    const string नाम ← "Marcus"
    print नाम

    # Multiple arguments
    const int aetas ← 30
    print "nomen: §"(नाम)
    print "aetas: §"(aetas)

    # Expressions
    const int x ← 10
    const int y ← 20
    print "summa: §"(x + y)

    # Multiple values in one statement
    print "coordinata: § §"(x, y)
}

Expected output:

Salve, Munde!
Marcus
nomen: Marcus
aetas: 30
summa: 30
coordinata: 10 20