LiamTheBox@lemmy.world to Greentext · 2 months agoAnon tries programming in Javalemmy.worldimagemessage-square248fedilinkarrow-up1883arrow-down136
arrow-up1847arrow-down1imageAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext · 2 months agomessage-square248fedilink
minus-squaresugar_in_your_tealinkfedilinkarrow-up19arrow-down1·edit-22 months agoPython: print("Hello world!")
minus-squaredch82@lemmy.ziplinkfedilinkarrow-up12·edit-22 months agoC: #include <stdio.h> int main() { printf("Hello World!"); return(0); } EDIT: POSIX-compatible shell: echo "Hello World!"
minus-squarePushButton@lemmy.worldlinkfedilinkarrow-up4·2 months agoRust: Still fighting the burrito check fil er
minus-squaresugar_in_your_tealinkfedilinkarrow-up3·edit-22 months agoPython2 is only one character longer: print “Hello world!” And you get proper data types too.
minus-squaredch82@lemmy.ziplinkfedilinkarrow-up2·2 months agoShell is only meant for duct tape scripts, you know to tie two regular compiled programs together
Python:
C:
#include <stdio.h> int main() { printf("Hello World!"); return(0); }
EDIT: POSIX-compatible shell:
echo "Hello World!"
PHP:
Rust:
Still fighting the burrito check fil er
Python2 is only one character longer:
And you get proper data types too.
Shell is only meant for duct tape scripts, you know to tie two regular compiled programs together