My first blog post
by k0mr4d3
Hello World! Here it is in a few languages, with bold keywords and italic comments courtesy of build-time syntax highlighting:
Contents
Python
1
2
3
# the classic
def main():
print("Hello World!") # to stdout
Defines a main function that prints a greeting to standard output.
C
1
2
3
4
5
6
7
/* the classic, in C */
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return 0;
}
The same program in C, returning 0 to signal success.
Tags: meta
| Previous |
| Welcome to plain-html-blog |