1 2 3 4 5 6 7 8 9 10 11 12 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # 4.8 if-else ¹® ¾È¿¡ if-else ¹® ³Ö±â, 108ÂÊ # num = int(input("Á¤¼ö¸¦ ÀÔ·ÂÇϽÿÀ: ")) if num >= 0: # ¹Ýµå½Ã µé¿©¾²±â¸¦ ÇÏ¿© ºí·°À» »ý¼º if num == 0: # ºí·° ³»¿¡¼ ¼¼ºÎÀûÀÎ Á¶°ÇÀ» ÇÑ ¹ø ´õ °Ë»ç print("0ÀÔ´Ï´Ù.") else: print("¾ç¼öÀÔ´Ï´Ù.") else: print("À½¼öÀÔ´Ï´Ù.") | cs |