oracle 九九乘法口訣 SQL

2021-07-27 14:59:04 字數 627 閱讀 9580

oracle 中 set serveroutput on 的作用是開啟系統預設設定的輸出功能,預設是關閉的。一般開發人員在使用pl/sql軟體時,需要輸出結果,就可以在命令列輸入該指令。

使用set serveroutput on 命令設定環境變數serveroutput為開啟狀態,從而使得pl/sql程式能夠在sql

declare

i number(8);

j number(8);

begin

for i in 1..9 loop

for j in 1..i loop

if j<=i and length(j*i)>=2then

dbms_output.put(' '||i||'*'||j||'='||i*j||' ');

else

dbms_output.put(' '||i||'*'||j||'='||' '||i*j||' ');

end if;

end loop;

dbms_output.put_line(null);

end loop;

end;

C 九九乘法口訣

如下 using system using system.collections.generic using system.linq using system.text namespace 九九 t j,i,i j if i j console.writeline n if i j console....

linux 乘法口訣 Shell的九九乘法口訣

bin bash for巢狀for迴圈 9 9乘法口訣 echo for的九九乘法表 for i 1 i 9 i dofor j 1 j 9 j do 當 j小於等於 i,在螢幕上列印乘法表 j le i echo n i j i j done echo done 9 9乘法口訣 echo unti...

C語言 輸出九九乘法口訣表

編寫c語言程式.輸出九九乘法口訣表.如下所示 1x1 1 1x2 2 2x2 4 1x3 3 2x3 6 3x3 9 1x9 9 2x9 18 3x9 27 4x9 首先容我先裝一逼,依老夫多年的程式設計經驗,本題一定需要迴圈 如果你目前還不知道為什麼用迴圈,也沒有關係,只要記住就好,日後經驗豐富後...