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
- Eureka
- Polymorphism
- class
- run()
- start()
- object
- 객체형변환
- hashCode
- fuction
- abstractclass
- garbagecollection
- hamobee
- string
- concreteclass
- override
- value
- ALTER
- MSA
- super
- methodArea
- eclipse
- arguments
- Vector
- Hashtable
- overload
- 생성자
- reference
- constantnumber
- 콘크리트클래스
- 추상클래스
Archives
- Today
- Total
뇌운동일지
[ 수학 프로그래밍 ] 피보나치 수열 활용 본문
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' 카테고리의 다른 글
[ 수학 프로그래밍 ] 3n+1 problem (0) | 2020.09.25 |
---|---|
[ 수학 프로그래밍 ] 구구단 (0) | 2020.09.25 |
[ 수학 프로그래밍 ] n n**2 n**3 (0) | 2020.09.25 |
python (1) | 2020.07.06 |
Comments