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)



DECLARE
   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;

No comments:

Post a Comment