Skip to content

Why Not Document It - WNDI#

Hey there

This is just a documentation space for personal reference.


View Source:

  • MarkHershey / docs
  • Raising issues about my mistakes, creating pull requests for improvements, or any kind of contributions is warmly welcomed.

Hello world!#

1
2
3
4
5
6
#include <stdio.h>

int main(void) {
  printf("Hello world!\n");
  return 0;
}
1
2
3
4
5
6
#include <iostream>

int main(void) {
  std::cout << "Hello world!" << std::endl;
  return 0;
}
1
2
3
4
5
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!"); 
    }
}
1
2
3
fn main() {
    println!("Hello World!");
}
1
2
def main():
    print("Hello world!")
1
2
3
4
5
6
package main

import "fmt"
func main() {
    fmt.Println("hello world")
}