Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
set serveroutput on
accept x prompt "Enter some numeric value: "
declare
procedure p (str in varchar2) is
begin
dbms_output.put_line (str);
end;
begin
if &x > 10 then
p('&X is greater than 10.');
if &x > 25 then
p('&x is also greater than 25');
elsif &X > 18 then
p('&x is also greater than 18');
else
p('&x is between 11 and 18');
end if;
elsif &X = 10 then
p('&x = 10.');
else
p('&x is less than 10.');
if &x < 5 then
p('&x is also less than 5.');
else
p('&x is between 5 and 9.');
end if;
end if;
end;
/
SQL> @tt_63
Enter some numeric value: 30
30 is greater than 10.
30 is also greater than 25
SQL> @tt_63
Enter some numeric value: 3
3 is less than 10.
3 is also less than 5.
SQL>