clc MB= 28.5 MD=7.5 TB=MB+MD printf('True bearing = S %f N',TB)