Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
50% off Print Subscription of USA Today

Get the news delivered to your doorstep. Lock in the savings and receive USA Today for just $0.75 a day.
From our sponsors
c 語言遞迴程式問題 質因數分解
Sep 11th 2014, 01:34

請設計一函式int factor(int n,int div),列印出其質因數,其中n為欲分解的正整數,div為拿來判斷是否可將n整除的數字。

你的程式需重覆執行,直到輸入的數字小於1。
輸入範例:

25

30

48

96

0

輸出範例:

25=5*5

30=2*3*5

48=2*2*2*2*3

56=2*2*2*7

如果知道這題的解答請告訴我,謝謝
這是 c語言 不是c++

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 qhhfl3xncebjd 的頭像
    qhhfl3xncebjd

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    qhhfl3xncebjd 發表在 痞客邦 留言(0) 人氣()