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 |
Tags
- MSA
- object
- constantnumber
- 콘크리트클래스
- overload
- Vector
- eclipse
- Hashtable
- reference
- arguments
- 추상클래스
- methodArea
- class
- run()
- Polymorphism
- string
- Eureka
- hashCode
- start()
- garbagecollection
- 생성자
- super
- fuction
- override
- ALTER
- abstractclass
- concreteclass
- hamobee
- 객체형변환
- value
Archives
- Today
- Total
목록python (5)
뇌운동일지
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/0UW9O/btqJs468v5F/2AcTFQuy00zZkZkltuLurK/img.png)
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
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/kOhce/btqJs5SrzK8/9Nn4q9tVlyc1huIPJckuHk/img.png)
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