public class TriangleArray
Python.代码量较少的实现方式如下：def triangles():下面是另一种较易理解的方式：def triangles():
Visual Basic.Private Sub Form_Click()End Subusing namespace std;
C++.int P(int n){int C(int a,int b){int main(){