Matt McCarthy

Chicago, IL, USA

http://mccarthywebdesign.com

"Hello, World!" in a few different languages, for the beginner programmer.

HTML:

<!DOCTYPE html>
<html lang=en>
<head></head>
<body>
  <h1>Hello, World!</h1>
</body>
</html>

Javascript:

console.log('Hello, World!');

Python 2:

print 'Hello, World!'

Python 3:

print('Hello, World!')

C:

#include <stdio.h>

int main() {
    printf("Hello, World!");

    return 0;
}

C++:

#include <iostream>

using namespace std;

int main() {
    cout << "Hello, World!" << endl;

    return 0;
}
Top Answers
No answers with score of 5 or more