• dch82@lemmy.zip
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    7 hours ago

    C:

    #include <stdio.h>
    
    int main() {
        printf("Hello World!");
        return(0);
    }
    

    EDIT: POSIX-compatible shell:

    echo "Hello World!"
    
    • sugar_in_your_tea
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      7 hours ago

      Python2 is only one character longer:

      print “Hello world!”

      And you get proper data types too.

      • dch82@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        Shell is only meant for duct tape scripts, you know to tie two regular compiled programs together