mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
20 lines
321 B
Nim
20 lines
321 B
Nim
discard """
|
|
output: '''Very funny, your name is name.
|
|
nameabc'''
|
|
"""
|
|
|
|
proc main =
|
|
let name = "name"
|
|
if name == "":
|
|
echo("Poor soul, you lost your name?")
|
|
elif name == "name":
|
|
echo("Very funny, your name is name.")
|
|
else:
|
|
Echo("Hi, ", name, "!")
|
|
|
|
let (x, y) = ("abc", name)
|
|
echo y, x
|
|
|
|
main()
|
|
|