-- Declare
-- message varchar(20);
-- BEGIN
-- message:='Hello, World';
-- dbms_output.put_line (message);
-- END;
-- /
-- -- WAP to add two numbers
-- Declare
-- a int;
-- b int;
-- c int;
-- BEGIN
-- a:=10;
-- b:=20;
-- c:=a+b;
-- dbms_output.put_line('sum = '||c);
-- END;
-- /
-- -- Taking Input
-- Declare
-- a int;
-- b int;
-- begin
-- a:=:a;
-- b:=:b;
-- c:a+b;
-- dbms_output.put_line(c);
-- dbms_output.put_line("Sum = "||c);
-- end;
-- /
-- Declare
-- a int;
-- b int;
-- c int;
-- begin
-- a:=10;
-- b:=20;
-- c:=a+b;
-- d:=a-b;
-- e:=a*b;
-- f:=a/b;
-- dbms_output.put_line('Sum = '||c);
-- dbms_output.put_line('Sub = '||d);
-- dbms_output.put_line('Mul = '||e);
-- dbms_output.put_line('Divide = '||f);
-- end;
-- -- select info
-- -- used to fetch values from some existing tables;
-- --Syntax -
-- Select column_name into variable_name from table_name where condition;
To embed this project on your website, copy the following code and paste it into your website's HTML: