bioinfo:comarative_programming_linguistics
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bioinfo:comarative_programming_linguistics [2022/03/27 08:47] – created hyjeong | bioinfo:comarative_programming_linguistics [2022/03/27 09:07] (current) – [If문] hyjeong | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== If문 ===== | ===== If문 ===== | ||
**Perl** | **Perl** | ||
+ | if ($name eq ' | ||
+ | print "Hello Haeyoung! Good morning!\n"; | ||
+ | } else { | ||
+ | print "You are not Haeyoung. Who are you? | ||
+ | } | ||
+ | |||
+ | if ($char eq ' | ||
+ | print "You entered ' | ||
+ | } elsif ($char eq ' | ||
+ | print "You entered ' | ||
+ | } else { | ||
+ | print "I don't understand.\n"; | ||
+ | } | ||
**R** | **R** | ||
Line 9: | Line 21: | ||
**Python** | **Python** | ||
+ | if money == 20000: | ||
+ | print(" | ||
+ | elif money >= 1000: | ||
+ | print(" | ||
+ | else: | ||
+ | print(" | ||
===== While문 ===== | ===== While문 ===== |
bioinfo/comarative_programming_linguistics.1648338446.txt.gz · Last modified: by hyjeong