|
論壇說明 |
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
|
主題工具 | 顯示模式 |
2007-01-06, 03:44 PM | #1 |
註冊會員
|
程式 - 出個題目 九九乘法 但是 ...
請用喜歡的程式印出九九乘法
但是程式碼必須在15行內 而且必須符合下列格式 語法:
2 * 1 = 2 3 * 1 = 3 4 * 1 = 4 5 * 1 = 5 2 * 2 = 4 3 * 2 = 6 4 * 2 = 8 5 * 2 = 10 2 * 3 = 6 3 * 3 = 9 4 * 3 = 12 5 * 3 = 15 2 * 4 = 8 3 * 4 = 12 4 * 4 = 16 5 * 4 = 20 2 * 5 = 10 3 * 5 = 15 4 * 5 = 20 5 * 5 = 25 2 * 6 = 12 3 * 6 = 18 4 * 6 = 24 5 * 6 = 30 2 * 7 = 14 3 * 7 = 21 4 * 7 = 28 5 * 7 = 35 2 * 8 = 16 3 * 8 = 24 4 * 8 = 32 5 * 8 = 40 2 * 9 = 18 3 * 9 = 27 4 * 9 = 36 5 * 9 = 45 6 * 1 = 6 7 * 1 = 7 8 * 1 = 8 9 * 1 = 9 6 * 2 = 12 7 * 2 = 14 8 * 2 = 16 9 * 2 = 18 6 * 3 = 18 7 * 3 = 21 8 * 3 = 24 9 * 3 = 27 6 * 4 = 24 7 * 4 = 28 8 * 4 = 32 9 * 4 = 36 6 * 5 = 30 7 * 5 = 35 8 * 5 = 40 9 * 5 = 45 6 * 6 = 36 7 * 6 = 42 8 * 6 = 48 9 * 6 = 54 6 * 7 = 42 7 * 7 = 49 8 * 7 = 56 9 * 7 = 63 6 * 8 = 48 7 * 8 = 56 8 * 8 = 64 9 * 8 = 72 6 * 9 = 54 7 * 9 = 63 8 * 9 = 72 9 * 9 = 81 |
送花文章: 623,
|
2007-01-06, 11:14 PM | #3 (permalink) |
協調管理員
|
c語言都可以寫成一行的嘛
以爬大寫的程式,可以改成下面這樣 PHP 語法:
|
__________________ |
|
送花文章: 11706,
|
向 飛鳥 送花的會員:
|
snoopy (2007-01-07)
感謝您發表一篇好文章 |
2007-01-06, 11:59 PM | #5 (permalink) |
長老會員
|
PHP 語法:
|
__________________ 金錢的數量,決定馬子的漂亮 硬碟的容量,決定男人的力量 製作Mail Logo按這裡 |
|
送花文章: 257,
|
向 leowang 送花的會員:
|
snoopy (2007-01-07)
感謝您發表一篇好文章 |
2007-01-07, 12:08 AM | #6 (permalink) | |
註冊會員
|
引用:
輸出格式必須符合以下格式喔 加油 語法:
2 * 1 = 2 3 * 1 = 3 4 * 1 = 4 5 * 1 = 5 2 * 2 = 4 3 * 2 = 6 4 * 2 = 8 5 * 2 = 10 2 * 3 = 6 3 * 3 = 9 4 * 3 = 12 5 * 3 = 15 2 * 4 = 8 3 * 4 = 12 4 * 4 = 16 5 * 4 = 20 2 * 5 = 10 3 * 5 = 15 4 * 5 = 20 5 * 5 = 25 2 * 6 = 12 3 * 6 = 18 4 * 6 = 24 5 * 6 = 30 2 * 7 = 14 3 * 7 = 21 4 * 7 = 28 5 * 7 = 35 2 * 8 = 16 3 * 8 = 24 4 * 8 = 32 5 * 8 = 40 2 * 9 = 18 3 * 9 = 27 4 * 9 = 36 5 * 9 = 45 6 * 1 = 6 7 * 1 = 7 8 * 1 = 8 9 * 1 = 9 6 * 2 = 12 7 * 2 = 14 8 * 2 = 16 9 * 2 = 18 6 * 3 = 18 7 * 3 = 21 8 * 3 = 24 9 * 3 = 27 6 * 4 = 24 7 * 4 = 28 8 * 4 = 32 9 * 4 = 36 6 * 5 = 30 7 * 5 = 35 8 * 5 = 40 9 * 5 = 45 6 * 6 = 36 7 * 6 = 42 8 * 6 = 48 9 * 6 = 54 6 * 7 = 42 7 * 7 = 49 8 * 7 = 56 9 * 7 = 63 6 * 8 = 48 7 * 8 = 56 8 * 8 = 64 9 * 8 = 72 6 * 9 = 54 7 * 9 = 63 8 * 9 = 72 9 * 9 = 81 |
|
送花文章: 623,
|
2007-01-07, 12:12 AM | #7 (permalink) |
長老會員
|
PHP 語法:
|
送花文章: 257,
|
向 leowang 送花的會員:
|
snoopy (2007-01-07)
感謝您發表一篇好文章 |
2007-01-07, 12:33 AM | #8 (permalink) | |
註冊會員
|
引用:
輸出第一列是 語法:
2 * 1 = 2 3 * 1 = 3 4 * 1 = 4 5 * 1 = 5 |
|
送花文章: 623,
|
2007-01-07, 01:08 AM | #9 (permalink) |
協調管理員
|
是想要這樣嗎?
PHP 語法:
PHP 語法:
|
送花文章: 11706,
|
向 飛鳥 送花的會員:
|
snoopy (2007-01-07)
感謝您發表一篇好文章 |
2007-01-07, 01:13 AM | #10 (permalink) |
註冊會員
|
恩 算對囉
其實這樣寫就可以了 PHP 語法:
語法:
2 * 1 = 2 3 * 1 = 3 4 * 1 = 4 5 * 1 = 5 2 * 2 = 4 3 * 2 = 6 4 * 2 = 8 5 * 2 = 10 2 * 3 = 6 3 * 3 = 9 4 * 3 = 12 5 * 3 = 15 2 * 4 = 8 3 * 4 = 12 4 * 4 = 16 5 * 4 = 20 2 * 5 = 10 3 * 5 = 15 4 * 5 = 20 5 * 5 = 25 2 * 6 = 12 3 * 6 = 18 4 * 6 = 24 5 * 6 = 30 2 * 7 = 14 3 * 7 = 21 4 * 7 = 28 5 * 7 = 35 2 * 8 = 16 3 * 8 = 24 4 * 8 = 32 5 * 8 = 40 2 * 9 = 18 3 * 9 = 27 4 * 9 = 36 5 * 9 = 45 6 * 1 = 6 7 * 1 = 7 8 * 1 = 8 9 * 1 = 9 6 * 2 = 12 7 * 2 = 14 8 * 2 = 16 9 * 2 = 18 6 * 3 = 18 7 * 3 = 21 8 * 3 = 24 9 * 3 = 27 6 * 4 = 24 7 * 4 = 28 8 * 4 = 32 9 * 4 = 36 6 * 5 = 30 7 * 5 = 35 8 * 5 = 40 9 * 5 = 45 6 * 6 = 36 7 * 6 = 42 8 * 6 = 48 9 * 6 = 54 6 * 7 = 42 7 * 7 = 49 8 * 7 = 56 9 * 7 = 63 6 * 8 = 48 7 * 8 = 56 8 * 8 = 64 9 * 8 = 72 6 * 9 = 54 7 * 9 = 63 8 * 9 = 72 9 * 9 = 81 |
送花文章: 623,
|
2007-03-05, 02:15 AM | #14 (permalink) | |
協調管理員
|
引用:
labview編出來的msi或是exe,還是什麼的用戶端,可以單獨執行嗎? 因為一年多前有寫過labview的程式來練習,但是不能編譯成單獨執行檔 還是我接觸還不深的關係 |
|
送花文章: 11706,
|