subject

Ineed to create a function that returns pascal's triangle with n rows, where n is an int argument.
int[][] pascalstriangle(int n);
a spot has value 1 if it is on the edge of the triangle. otherwise, it is the sum of the 2 elements above it.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
the language i need to use is java

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 20:40
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
You know the right answer?
Ineed to create a function that returns pascal's triangle with n rows, where n is an int argument. <...
Questions
question
History, 13.02.2021 08:50
question
Mathematics, 13.02.2021 08:50
question
Mathematics, 13.02.2021 08:50
question
Chemistry, 13.02.2021 08:50
question
Mathematics, 13.02.2021 08:50
question
Engineering, 13.02.2021 08:50
question
Mathematics, 13.02.2021 08:50
question
Arts, 13.02.2021 08:50
question
Mathematics, 13.02.2021 08:50
question
Chemistry, 13.02.2021 08:50
Questions on the website: 13722367