1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)

ORACLE Tutorials

SAMPLE PROGRAM TO GENERATE FIBONACCI SERIES UPTO 'n' NUMBERS

DECLARE
    n number := &n;
    t1 number := 0;
    t2 number := 1;
    t3 number;
BEGIN
    dbms_output.put_line(t1);
    dbms_output.put_line(t2);
    for i in 3..n loop
     t3 := t1 + t2;
     dbms_output.put_line(t3);
     t1 := t2;
     t2 := t3;
    end loop;
END;

** 5. PROGRAM TO GENERATE MULTIPLICATION TABLE FOR A NUMBER 'n'

DECLARE
    n number := &n;
    prod number;
BEGIN
    for i in 1..10 loop
     prod := n * i;
     dbms_output.put_line(n||' * '||lpad(i,2,' ')
||' = '||lpad(prod,3,' '));
    end loop;
END;

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy