Write a PL-SQL Program block to Input a number with a substitution variable, and then print its multiplication table using a while loop

 
 DECLARE
  n number(2):=&n;
  i integer(2):=1;
  BEGIN
  while i < 11 LOOP
  dbms_output.put_line(i || 'x'|| n || '=' || i*n);
  i:=i+1;
  END LOOP;
  END;
/
 

Cookies Consent

This website uses cookies to ensure you get the best experience on our website.

Read More