Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Simple calculator
Declare A number:=22; B number := 7; Arit_operation varchar2(20):='DIVIDE'; BEGIN dbms_output.put_line('program started'); Case When arit_operation ='ADD' THEN dbms_output.put_line('addition of the numbers are:' || a+b); When arit_operation ='SUBtRACT' THEN dbms_output.put_line('subtraction of the numbers are:' || a-b); When arit_operation ='MULTIPLY' THEN dbms_output.put_line('multipliaction of the numbers are:' || a*b); When arit_operation ='DIVIDE' THEN dbms_output.put_line('division of the numbers are:' || a/b); Else Dbms_output.put_line('program ended'); End case; End;
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
HELLO WORLD
ttt
DBMS
Srinivas
Srinivas
Sush_emp_work
creation of table
ishu
Detail1
IT
Please log in to post a comment.