In most languages you have to flush the output stream, or else your output just sits in a buffer and never gets printed. To do that you can either use the appropriate function (called flush or something similar) or end your output with a newline.
If you don’t do it you get the message that “your program didn’t provide any output”.