最簡單的直角三角形 (Right Triangle)
http://mathworld.wolfram.com/RightTriangle.html
=================================================
Result
*
**
***
-------------------------------------------------------------
1. public class Example { public static void main(String[] args) { for (int i = 0; i < 3; i++) { for (int j = 0; j <= i; j++) { System.out.print("*"); } System.out.println(); } } } |
continue...
0 件のコメント:
コメントを投稿