JSP Output Pyramid Simple Example
<% 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 %>
The above is the simple example of JSP Output Pyramid brought to you by the editor. I hope everyone will support PHP Chinese. Net~
For more simple examples of jsp output pyramid related articles, please pay attention to the PHP Chinese website!