My Codding Doubt
My Codding Doubt
Wednesday, 9 March 2016
Implementation of multiplication table in oracle pl-sql (do while loop)
Implementation of multiplication table in oracle pl-sql (for loop)
a number(6);
c number(6);
b number(6) := 19;
BEGIN
dbms_output.put_line('Multiplication table for 19 table is (implemented using for loop):');
FOR a in 1 .. 10 LOOP
c := b*a;
dbms_output.put_line( b || ' * ' || a || ' = ' || c );
END LOOP;
END;
Subscribe to:
Comments (Atom)