[파이썬]Chapter 6 예제 part 1 (Q.1 ~ Q.25)
6.1 (Math: pentagonal numbers) A pentagonal number is defined as for and so on. So, the first few numbers are 1, 5, 12, 22, .... Write a function with the following header that returns a pentagonal number: def getPentagonalNumber(n): Write a test program that uses this function to display the first 100 pentagonal numbers with 10 numbers on each line. 1 2 3 4 5 6 7 8 9 10 11 12 def getPentagonalN..
파이썬/예제
2017. 8. 30. 18:14
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 자바스크립트 자료구조
- 파이썬 터틀
- css 그리드
- 파이썬 클래스
- 백준 1874
- 파이썬 예제
- 파이썬 문자열
- 명품 c++ 실습
- 파이썬 리스트
- 파이썬 while
- 파이썬 단계적 개선
- 웹
- 백준 10451
- 자바스크립트 그래프
- 파이썬 진수 변환
- 파이썬 if문
- 백준 11501
- css
- 파이썬 함수
- 버츄어박스
- 자료구조
- 파이썬 연산자
- 자바 에센셜 실습문제
- 백준
- 파이썬 선택문
- 파이썬 객체
- 파이썬
- 자바
- css 박스
- 파이썬 for
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함