@LiamTheBox@lemmy.world to Greentext@sh.itjust.works • 1 day agoAnon tries programming in Javalemmy.worldimagemessage-square224fedilinkarrow-up1792arrow-down133
arrow-up1759arrow-down1imageAnon tries programming in Javalemmy.world@LiamTheBox@lemmy.world to Greentext@sh.itjust.works • 1 day agomessage-square224fedilink
minus-square@sugar_in_your_tea@sh.itjust.workslinkfedilink10•edit-210 hours agoPython: print("Hello world!")
minus-squaredch82linkfedilink8•edit-210 hours agoC: #include <stdio.h> int main() { printf("Hello World!"); return(0); } EDIT: POSIX-compatible shell: echo "Hello World!"
minus-square@sugar_in_your_tea@sh.itjust.workslinkfedilink2•edit-210 hours agoPython2 is only one character longer: print “Hello world!” And you get proper data types too.
minus-squaredch82linkfedilink2•10 hours 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