Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- abstractclass
- constantnumber
- methodArea
- super
- MSA
- Eureka
- object
- override
- fuction
- 추상클래스
- concreteclass
- hashCode
- arguments
- Hashtable
- garbagecollection
- 콘크리트클래스
- 객체형변환
- value
- start()
- Vector
- class
- run()
- overload
- string
- reference
- 생성자
- ALTER
- hamobee
- Polymorphism
- eclipse
Archives
- Today
- Total
목록python (5)
뇌운동일지
[ 수학 프로그래밍 ] 3n+1 problem
def solution(i, j): for n in range(i, j+1): print (n, " : ", end="") while n != 1: if n % 2 == 0: n = n/2 print(int(n),",", end=" ") else: n = (3 * n) + 1 print(int(n),",", end=" ") print() solution(10,19)
python
2020. 9. 25. 13:01
[ 수학 프로그래밍 ] 피보나치 수열 활용
def f(n): if n == 0 : return 1 elif n >= 1 : return(2*f(n-1)) for i in range(7): print(f(i),"는 2의", i,"제곱이다." ) print(); print("128보다 작은 2의 제곱수들!")
python
2020. 9. 25. 12:34