- 57
- 0
- 约4.4千字
- 约 10页
- 2019-04-05 发布于广东
- 举报
packagepublic123
package
public
1
2
3
4
5
6.
7.
8.
V
public
static void main(String[] args)
9.
a(); //打印正等腰三角
10.
b(); //打印倒等腰三角
11.
c () ; //打印直边靠左正直角三角
12.
d() ; //打印直边靠右正直角三角
13.
e(); //打印良边靠左倒良角三角
14.
f 0 ; //打印直边靠右倒直角三角
15.
g() ; //打印底边靠左钝角角三角
16.
h(); //打印底边靠右钝角角三角
17.
}
18.
/林
19.
氺
作用:打印正等腰三角
20.
V
21.
public
static void a() {
22.
System, out. println(〃打印正等腰三角〃)
23.
int i , j;
24.
for (i=l;i =5;i++){
25.
for(j=5; ji; j—) {
26.
System, out. print (〃
27.
}
28.
for(j=0;j〈i*2-l;j++){
29.
System, out. print(〃氺〃
30.
}
31.
System, out. println ();
32.
}
33.
}
34.
35.
36.
*打印倒等腰三角
37.
38.
publ
原创力文档

文档评论(0)