I want to calculate the sum of the digits of a user-specified number first. Then I want to check if this number is divisible by the sum of its digits. Unfortunately, for example, for 21 it shows that it is not divisible, and for 200 that it is divisible. Maybe someone helps me. I'm just learning the language pl SQL.

```js
DECLARE 

    n   number(5):=&give_number;  
    temp_sum INTEGER;  
    r        INTEGER;
    a varchar(20);
BEGIN 
    temp_sum := 0;  

    WHILE n <> 0 LOOP  
        r := MOD(n, 10);  
        temp_sum := temp_sum + r;  
        n := Trunc(n / 10);  
    END LOOP;   
    a:=mod(r,temp_sum);
    if a = 0   then
    dbms_output.put_line('Divisible');
    else
    dbms_output.put_line('No divisible');
    end if;
END;  
```