Pascal's Triangle Format

前端 未结 8 1845
长发绾君心
长发绾君心 2020-12-03 08:38

The assignment is to create Pascal\'s Triangle without using arrays. I have the method that produces the values for the triangle below. The method accepts an integer for the

8条回答
  •  有刺的猬
    2020-12-03 09:05

    You can try this code in java. It's simple :)

    public class PascalTriangle {
    
    public static void main(String[] args) {
        int rows = 10;
    
        for(int i =0;i

提交回复
热议问题