johnchen902's Blog

Hello, world!

Problem

As you expected, print "Hello, world!".

Solution

With a hosted implementation, you should be able to use the cstdio library and get the job done.

std::puts() is preferred over std::printf() because there is no formatted output.

Source Code

#include <cstdio>
int main() {
    std::puts("Hello, world!");
}