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)