Largest number and odd or even program using pl/sql
Largest number and odd or even program
declarev_num1 number(5):=&v_num1;
v_num2 number(5):=&v_num2;
large number(5);
begin
if(v_num1>v_num2)
large:=v_num1;
else
large:=v_num2;
end if;
if(mod(large,2)=0)
dbms_output.put_line=("the answer"||large||'is large and an even number ');
else
dbms_output.put_line=("the answer"||large||'is large and an odd number ');
end if;
end;
No comments: