clear //Given ug=1.5 uw=1.33 //Calculation u1=ug/uw sinC=1/u1 C=asin(sinC)*180/3.14 //Result printf("\n Critical angle is %0.2f degree",C)