Question: Using SCILAB:create a code Make a program that generates the first n rows of the Pascal triangle. You may specify the value of n, however,
Using SCILAB:create a code Make a program that generates the first n rows of the Pascal triangle. You may specify the value of n, however, this may be changed. Hence, your code should run correctly for any value of n. All inputs should be inside the program. Do not ask the user for anything. The user should not type anything on the console, meaning, the user would only run the program and the answer/s would show on the console. Also the program includes an if statement if n=1 and print, else if n=2 and print and another else if n3 and print
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
