Code works for add,sub and mul