#include <stdio.h> // contains functions for input and output
int main()
{
printf("Hello, world!\n");
return 0;
}
#include <iostream> // c++ classes don't use .h extensions
using namespace std;
int main()
{
cout << "Hello, world!" << endl;
return 0;
}
Some C programs I've written are available on the code page.