diff options
Diffstat (limited to '3808/CH2/EX2.9/Ex2_9.sce')
-rw-r--r-- | 3808/CH2/EX2.9/Ex2_9.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3808/CH2/EX2.9/Ex2_9.sce b/3808/CH2/EX2.9/Ex2_9.sce new file mode 100644 index 000000000..538e11926 --- /dev/null +++ b/3808/CH2/EX2.9/Ex2_9.sce @@ -0,0 +1,12 @@ +//Chapter 02:Basic Structures: Sets, Functions, Sequences, Sums and Matrices + +clc; +clear; + +n=1 +result=0 +number=input("Enter the number:"); +for i=1:number-1 +n=n+(i*n) +end +mprintf("The factorial of %d is %d",number,n) |