Skip to content
Snippets Groups Projects
Commit e1e4713a authored by 장범진's avatar 장범진
Browse files

Upload New File

parent 953a006d
No related branches found
No related tags found
No related merge requests found
flow.py 0 → 100644
a=3
if a == 3:
print('')
print('')
print('Three')
else:
print('삼이아님.')
import sys
print('\n\n수를 입력하세요 : ')
a = int(input())
if a == 0: # if not a: 와 동일한 코드
print('0은 나눗셈에 이용할 수 없습니다.')
sys.exit(0)
print('3 /', a, '=', 3/a)
print('\n\n수를 입력하세요 : ')
a = int(input())
if a == 0 :
print('0은 나눗셈에 이용할 수 없습니다.')
else :
print('3 /', a, '=', 3/a)
print('\n\n수를 입력하세요 : ')
a = intinput()
if(a.isnumeric()):
a=int(a)
if a == 0 :
print('0은 나눗셈에 이용할 수 없습니다.')
else :
print('3 /', a, '=', 3/a)
else:print('숫자를 입력하세요')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment