I'm learning Oracle
but I have a problem withn this exercise, I need to this summation
3
∑ (X2 + 4)
N=1
and this is my code
DECLARE
x NUMBER(10) :=0;
z NUMBER;
suma NUMBER;
BEGIN
WHILE x<=3
LOOP
x :=x+1;
z := x*2+4;
suma := suma+z;
END LOOP;
DBMS_OUTPUT.PUT_LINE(suma);
END
what is my error ?
Thanks