LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 20 days agoAnon tries programming in Javalemmy.worldimagemessage-square222fedilinkarrow-up1856arrow-down132
arrow-up1824arrow-down1imageAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 20 days agomessage-square222fedilink
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkarrow-up19·edit-219 days agoPython: print("Hello world!")
minus-squaredch82@lemmy.ziplinkfedilinkarrow-up12·edit-219 days agoC: #include <stdio.h> int main() { printf("Hello World!"); return(0); } EDIT: POSIX-compatible shell: echo "Hello World!"
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkarrow-up3·edit-219 days agoPython2 is only one character longer: print “Hello world!” And you get proper data types too.
minus-squaredch82@lemmy.ziplinkfedilinkarrow-up2·19 days 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!"
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