a=sqrt(200); b=sqrt(50); s=0; for x=1:8 for y=1:15 c=x*x+y*y/4; if c<50 s=s+1; else s=s; end end end s=s*4+14*2+7*2+1;