diff options
Diffstat (limited to '260/CH1/EX1.5/1_5.sce')
-rw-r--r-- | 260/CH1/EX1.5/1_5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/260/CH1/EX1.5/1_5.sce b/260/CH1/EX1.5/1_5.sce new file mode 100644 index 000000000..ca87a6395 --- /dev/null +++ b/260/CH1/EX1.5/1_5.sce @@ -0,0 +1,13 @@ +//Eg-1.5
+//pg-16
+
+clear
+clc
+
+
+summ=0;
+for i=1:100
+ summ=summ+i^2;
+end
+disp("sum of squares of first 100 natural numbers is")
+disp(summ)
\ No newline at end of file |