jsp輸出金字塔的簡(jiǎn)單實(shí)例
<% String str = ""; for(int i = 1; i <= 5; i++){ for(int j = 1; j <= 5-i; j++){ str +=" "; } for(int k = 1; k <= 2*i-1; k++){ str +="☆"; } str +="<br>";}%><%= str %>
以上就是小編為大家?guī)?lái)的jsp輸出金字塔的簡(jiǎn)單實(shí)例全部?jī)?nèi)容了,希望大家多多支持VeVb武林網(wǎng)~
新聞熱點(diǎn)
疑難解答
圖片精選