Two-slit diffraction of the monochromatic plane-light wave is simulated on computer and the intensity distribution of light and diffraction pattern are obtained on condition that the math model is founded on the base of Fresnel diffraction integral formula.when those results are contrasted with those of single-slit diffraction and two-slit interference,the relations among them are illustrated.Those help to understand the relations between interference and diffraction.