diff options
Diffstat (limited to '1553/CH1/EX1.33/1Ex33.sce')
-rw-r--r-- | 1553/CH1/EX1.33/1Ex33.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH1/EX1.33/1Ex33.sce b/1553/CH1/EX1.33/1Ex33.sce new file mode 100644 index 000000000..45318111f --- /dev/null +++ b/1553/CH1/EX1.33/1Ex33.sce @@ -0,0 +1,11 @@ +//chapter 1 Ex 33
+
+clc;
+clear;
+close;
+//The given series is in geometric progression
+a1=2; a2=2^2; n=10;
+r=a2/a1;
+
+Sum=a1*(r^n-1)/(r-1); //formula for GP
+printf("The required sum is %d",Sum);
|