JAVA语言程序设计(第8版)第5章完整答案programmingexercises(程序练习题)答案完整版.docxVIP

  • 3
  • 0
  • 约4.78千字
  • 约 6页
  • 2020-10-04 发布于天津
  • 举报

JAVA语言程序设计(第8版)第5章完整答案programmingexercises(程序练习题)答案完整版.docx

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++; if (count % PENT

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档