How to save function output as a variable?

I tried your example and print(c) works as expected.

How do you run your code (which editor, Julia version, OS)?