Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

for next

1)) 1!+3!+5!+7!+.....+N! 之和

要用 TEXTBOX做

假如N是五

結果會出現127

2))求竹竿長度

表單會出現

"一竹竿長1500公分,每日截取一半

第1天竹竿長度750公分

第2天竹竿長度375公分

第3天竹竿長度187.5公分

第4天竹竿長度93.75公分

第5天竹竿長度46.875公分

第6天竹竿長度23.4375公分

第7天竹竿長度11.71875公分

第8天竹竿長度5.859375公分"

3)) XYZ-100 = X^Z + Y^Z + z^z

表單會出現 "THE answer is 135"

4))印出星號三角形

*

**

***

****

*****

1 Answer

Rating
  • 骨頭
    Lv 4
    1 decade ago
    Favorite Answer

    先回答你1.4題

    1.

    n = 5

    For i = 1 To n Step 2

    b = 1

    For j = 1 To i

    b = b * j

    Next

    s = s b

    If i <> n Then

    thing = thing & i & "! "

    Else

    thing = thing & i & "!="

    End If

    Next

    Text1.Text = thing & s

    4.

    n = 5

    For i = 1 To n

    For j = 1 To i

    Print "*";

    Next j

    Print

    Next i

    我的無名:

    www.wretch.cc/blog/denny9030

    Source(s): 我自己寫的~!
Still have questions? Get your answers by asking now.