期中考巢狀比較

非巢狀

if (r) present("#FF0000");
if (g) present("#00FF00");
if (b) present("#0000FF");

巢狀

if (r) present("#FF0000");
else if (g) present("#00FF00");
else if (b) present("#0000FF");
else alert("輸入的顏色條件,不滿足r, g, b,其他的!");

期中考



紅色 綠色 藍色
粗體

輸出

招柏揚期中報告

把之前學的東西濃縮一次始使用,感覺相當有趣.讚啦

留言

張貼留言

這個網誌中的熱門文章