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

pl/sql九九乘法表

WBOY
Release: 2016-06-07 14:57:27
Original
1831 people have browsed it

无详细内容 无 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;
Copy after login
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template