diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /55/CH6/EX6.3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '55/CH6/EX6.3')
-rwxr-xr-x | 55/CH6/EX6.3/6ex3.sci | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/55/CH6/EX6.3/6ex3.sci b/55/CH6/EX6.3/6ex3.sci new file mode 100755 index 000000000..11b9b7741 --- /dev/null +++ b/55/CH6/EX6.3/6ex3.sci @@ -0,0 +1,12 @@ +disp('To find: factorial of a 6')
+facto2=2*1;
+facto3=3*facto2
+facto4=3*facto3
+facto4=4*facto3
+facto5=5*facto4
+facto6=6*facto5
+
+k=8*7*factorial(6)/factorial(6);
+disp(k,'value of 8!/6! is:')
+j=12*11*10*factorial(9)/factorial(9);
+disp(j,'value of 12!/9! is:')
\ No newline at end of file |