كل كلمات امتحان الـ IELTS اللى هتحتاجها
12 years ago
This Blog particularized for Oracle Developers ... you will see interesting Codes for SQL , PL/SQL as well as new ideas for Developer Suite and Client Tools that will help you in your professional life ... and I hope I reach for your satisfaction.
I'm Hany Freedom , 25 years old , I live in EL-Minia City in Egypt , I'm Moderator at ArabOUG.org the best Arabic Forum for ORACLE on the Net. if you interested to know more about me .... just Click Here.
DECLARE
p NUMBER := 0;
BEGIN
FOR k IN 1.. 500 LOOP -- calculate pi with 500 terms
p := p + (((-1) ** (k + 1)) / ((2 * k) - 1));
END LOOP;
p := 4 * p;
dbms_output.Put_line('pi is approximately : '
||p); -- print result
END;
/
Using a Simple FOR..LOOP Statement
Hany Freedom is a fan of |
0 comments:
Post a Comment