- 5
- 0
- 约3.88万字
- 约 38页
- 2019-07-16 发布于四川
- 举报
5_1
public class Exercise01 {
public static void main(String[] args) {
final int PENTAGONAL_NUMBERS_PER_LINE = 10;
final int PENTAGONAL_NUMBERS_TO_PRINT = 100;
int count = 1;
int n = 1;
while (count = PENTAGONAL_NUMBERS_TO_PRINT) {
int pentagonalNumber = getPentagonalNumber(n);
n
原创力文档

文档评论(0)