[Python Examples] 파이썬 while문 예제: while, if, elif, else
파이썬 while문 예제: while, if, elif, else 포스트 난이도: HOO_Intern # Example codes x = 0 print(" x ","|"," y ") print("--------|--------") while not x > 98: if x >= 0 and x = 1 and x < 2: y = x*x print("%4.f" % x, " |", " %4.f " % y) else: y = x+2 print("%4.f" % x, " |", " %4.f " % y) x +=1 x | y --------|-------- 0 | 0 1 | 1 2 | 4 3 | 5 4 | 6 5 | 7..
2022. 11. 20.