Home >Database >Mysql Tutorial >pl/sql九九乘法表

pl/sql九九乘法表

WBOY
WBOYOriginal
2016-06-07 14:57:271849browse

无详细内容 无 declare i integer; j integer;begin -- 9*9乘法表 for i in 1..9 loop for j in 1..i loop dbms_output.put(i||'*'||j||'='||i*j||chr(9)); end loop; dbms_output.new_line; end loop;end;

declare 
  i integer;
  j integer;
begin
  -- 9*9乘法表
  for i in 1..9 loop
    for j in 1..i loop
      dbms_output.put(i||'*'||j||'='||i*j||chr(9));
    end loop;
    dbms_output.new_line;
  end loop;
end;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn