for loop!!!

2011-06-04 3:51 am
如果我要用 for loop 打50個 "#";
應該點做??
computer exam ah!
吾該咁多位喇(:
更新1:

java script ah! ;p 平時上堂系咁做的:: 今次50個一樣ge吾識做; 幫幫手;)

更新2:

Key Sing; it doesn't work`

回答 (2)

2011-06-05 11:27 pm
✔ 最佳答案
> 應該點做??
你應該先告訴我們你在學哪一款程式語言。

2011-06-05 15:27:37 補充:
<script type="text/javascript">for ( var i = 0; i < 50; ++i ){ document.write ( "#" );}</script>Something like this?
2011-06-04 8:54 am
for (int i = 1;i>=50;i++){
Alert("#");
}
參考: K.S LAM


收錄日期: 2021-04-23 20:21:44
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20110603000051KK00787

檢視 Wayback Machine 備份