print pattern java

2013-01-10 7:53 am
1
21
321
4321
54321

回答 (1)

2013-01-10 8:58 pm
✔ 最佳答案

String s = "";
for(int i=1; i<=5; i++){
s = i+""+s;
System.out.println(s);
}


收錄日期: 2021-04-13 19:14:04
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20130109000051KK00420

檢視 Wayback Machine 備份