一、Java 程式 PreStars 會印出什麼結果?維持巢狀 for 迴圈架構,小修 PreStars,讓它印出以下的星星構圖。(25 分) 
詳解 (共 10 筆)
power80230
詳解 #3485376
(1) * ** *** ...
(共 411 字,隱藏中)
前往觀看
Jian Ting Liu
詳解 #5150541
1. * ** *** ****...
(共 256 字,隱藏中)
前往觀看
boy54875
詳解 #4057948
* ** *** **** ***** ...
(共 267 字,隱藏中)
前往觀看
111郵專一,地特四資訊正取
詳解 #4070127
土法煉鋼煉起來

piano2489
詳解 #3953714
1.

2.依據題目印出每行星號遞減1個
111經濟部我要上榜
詳解 #4311433
public class PreStars
{
public static void main (String[] args)
{
for(int i=1; i<=10; i++){
for(int j=1; j<=i;j++)
System.out.print('');
for(int k=1; k<=11-i;k++)
System.out.print("*");
System.out.println("");
}
}
}
{
public static void main (String[] args)
{
for(int i=1; i<=10; i++){
for(int j=1; j<=i;j++)
System.out.print('');
for(int k=1; k<=11-i;k++)
System.out.print("*");
System.out.println("");
}
}
}
hesh
詳解 #3947157
* ** *** **** ***** ...
(共 271 字,隱藏中)
前往觀看
hesh
詳解 #3947159
* ** *** **** ***** ...
(共 271 字,隱藏中)
前往觀看
蟲鳴鳥叫
詳解 #3655583
* ** *** **** ***** ****** ******* ******** ********* ********** ***********
YABE
詳解 #4613575
* ** *** **** ***** ...
(共 316 字,隱藏中)
前往觀看