Birth of limit cycles for a classe of continuous and discontinuous differential systems in (d 2)-dimension