result=0; for i=3:17; for j=-4:24; if ( (i-10)^2 + (j-10)^2 < 35) || ( (i-10)^2 + [(j-10)^2]/4 <50); result=result+1; end; end; end; disp(result);