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

Upload New File

parent e1e4713a
Branches
No related tags found
No related merge requests found
11.23.py 0 → 100644
print("수를 입력하세요:")
a= int(input())
if a%2 ==1:
print("Odd Number")
else:
print("Even Number")
if a % 3 ==0:
print("Times 3")
print("요일(월~일)을 입력 하세요:")
dow = input()
if dow == "":
print("Monday")
elif dow == "":
print("Tuesday")
elif dow == "":
print("Wednesday")
elif dow == "":
print("Thursday")
elif dow == "":
print("Friday")
elif dow == "":
print("Saturday")
elif dow == "":
print("Sunday")
else:
print("잘못 입력된 요일 입니다.")
print("수를 입력하세요:")
a=int(input())
if a == 0:
print("0은 나눗셈에 이용할 수 없습니다.")
else:
print("3/",a,"=", 3/a)
print("몇번 반복할까요? :")
limit = int(input())
if(limit<0):
print("0이상의 수를 입력해 주세요")
count = 0
while (count < limit):
count = count+1
print("{0}회 반복".format(count))
print("\n\n\n")
while(limit>0):
print("{0}회 반복".format(limit))
limit = limit-1
print("반복이 종료 되었습니다.")
#위는 12345 아래는 54321
a= [1,2,3]
a.append(4)
for i in a:
print(i)
# 4번 반복
a= [1,2,3,4,5,6]
for i in a:
print(i)
print("\n\n\n")
for j in range(0,10,2):
print(j)
print("\n\n\n")
for k in range(1,20,1):
for l in range(k):
print("*", end="",)
print()
print("\n\n\n")
sum = 0.0
sq=0.5
for i in range(2,100,1):
sum = sum + 1.0 /i
sq=sq*0.5
print(i,sum)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment