create or replace procedure ex3(num in number) as
z number := 0;
x number;
begin
x := num/z;
dbms_output.put_line(x);
exception
  when zero_divide then
  dbms_output.put_line('divided by zero hero');
   when others then
    dbms_output.put_line('cursor not opened');
end ex3;
/
