本帖最後由 tonyh 於 2020-7-31 16:18 編輯
利用巢狀回圈, 將符號*整齊排列成如下之三角形:
 - public class Ch19
- {
- public static void main(String args[])
- {
- for(________________)
- {
- for(________________)
- System.out.print(" ");
- for(________________)
- System.out.print("*");
- System.out.println();
- }
- }
- }
複製代碼本帖隱藏的內容需要回復才可以瀏覽 |