Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> PL/SQL exam question
While practising with STS questions ,I happened to see this following question, which is abit confusing..
Evaluate this PL/SQL loop :
WHILE v_price < &&p_count LOOP
v_amount:=v_amount + 1;
v_price:=v_amount*&&p_pct_increase;
END LOOP;
If V_PRICE is 45, P_COUNT is 75, and V_AMOUNT is 5, which P_PCT_INCREASE
value would cause the loop to terminate ?
I think it is 15 but the answer is 20.
Can anybody please clarify??
Thanks & regards
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Sun Apr 09 2000 - 00:00:00 CDT