?? p179_8.java
字號:
public class p179_8
{
public static void main(String[] args)
{
System.out.print("Please enter a integer:");
int maxstar=SavitchIn.readLineInt();
int row,star;
for(row=1;row<=maxstar;row++){
for(star=1;star<=row;star++){
System.out.print("*");
}
System.out.println();
}
for(row=1;row<=maxstar-1;row++)
{
for(star=maxstar-1;star>=row;star--)
{System.out.print("*");
}
System.out.println();
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -