clear all
clc
n=input('Enter the number of points you wont to splead in the square: \n');
m=0;
for i=1:n    
x=3.5*rand;
y=2.5*rand;
if(x^2+y^2>1 && (x^2/(3))+(y^2/(1.3)) <3)
m=m+1;
plot(x,y,'r.')
hold on
else   
plot(x,y,'g.')
hold on
end
end
A_Donate 4*m/n
error=(A_Donate-3*pi/4)/(3*pi/4)*100;
