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;
No comments:
Post a Comment