Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DECLARE
count NUMBER := 0;
isDark BOOLEAN := FALSE;
BEGIN
-- Display initial state
DBMS_OUTPUT.PUT_LINE('Counter: ' || count);
DBMS_OUTPUT.PUT_LINE('Theme: ' || CASE WHEN isDark THEN 'Dark' ELSE 'Light' END);
-- Increment counter
count := count + 1;
DBMS_OUTPUT.PUT_LINE('Counter: ' || count);
-- Toggle theme
isDark := NOT isDark;
DBMS_OUTPUT.PUT_LINE('Theme: ' || CASE WHEN isDark THEN 'Dark' ELSE 'Light' END);
-- Decrement counter
count := count - 1;
DBMS_OUTPUT.PUT_LINE('Counter: ' || count);
-- Reset counter
count := 0;
DBMS_OUTPUT.PUT_LINE('Counter: ' || count);
END;Coding works best on desktop or with an external keyboard.