summaryrefslogtreecommitdiff
path: root/260/CH1/EX1.5/1_5.sce
blob: ca87a6395488c2890e355c971af31351e5d41a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)