clc // doing only one of the given // WCB to RB a= 22.5 printf('a)R.B = N 22.5 E\n') //RB to WCB printf(' b)W.C.B = 12 degrees 24 min')