state snells law of refraction.
According to the Snell's law,
The ratio of sine of angle of incidence to the sine of angle of refraction is constant.
sine of angle of incidence(i)/sine of angle of refraction(r)=constant
this constant is called refractive index(n).
n=sin i/sin r