Hello, World!
Hello World in Nim
echo "Hello, World!"Isn't it easy?
var input:string = readline(stdin)
echo inputThis code will read input from the stdin and print it! Note: you can statically define varibale type using the : token
Running the code
nim c hello.nimThis will create an executable hello in the current directory.
Now, you can simple type ./hello to run it.
Last updated
Was this helpful?