Triangular, pentagonal, and hexagonalProblem 45Triangle, pentagonal, and hexagonal numbers are generated by the following formulae:TriangleTn=n(n+1)/21, 3, 6, 10, 15, .
原创
2022-08-11 16:56:30
60阅读
下面是参考答案代码:运行效果:注:编写程序要养成良好习惯1.文件名要用英文,具体一点2.注释要英文3.变量命代码编辑器的一些常用快...
原创
2023-01-31 11:00:19
132阅读
Pentagon numbersProblem 44Pentagonal numbers are generated by the formula, Pn=n(3n−1)/2. The first ten pentagonal numbers are:1, 5, 12, 22, 35, 51, 70, 92, 117, 145, ...It can be see
原创
2022-08-11 16:56:51
57阅读
Triangle, square, pentagonal, hexagonal, heptagonal, and octagonal numbers are all figurate (polygonal) numbers and are generated by the following for
转载
2017-05-25 08:42:00
110阅读
2评论
//exercise 5.1
package fivechapterexercise1;
public class first {
public static void main(String[] args) {
// TODO Auto-generated method stub
final int NUMBER_OF_PENTAGONAL_PER_L
转载
2023-06-01 19:21:41
100阅读