※ 引述《todo2015 (土豆)》之銘言:
: ㄜ...最近大家期末考都很忙...
: 這題有人有空再幫我就好了:p
: 先感謝了 XD
: (其實也是別人要問的 = =")
: ========================================================
: Q1:
: 輸入0 ~ 1073741823 值, 使用相除與模數運算子
: 將此數轉為二進位呈現
: ( 123456789 ) = ( 000111010110111100110100010101 )
hint:
123456789|2
---------+
61728394|餘1
---------+
30864197| 0
---------+
15432098| 1
---------+
7716049| 0
---------+
3858024| 1
---------+
etc.
: Q2:
: 輸入任意正整數, 程式需印出該數所有"2以上質因數"
hint: 紙筆做質因數分解
: ========================================================
: 恩 請問一下C++該怎麼寫呢?? <(__ __)> 謝謝
: 祝大家期末all pa啦
: 雖然我微甲爆掉了 =..=
--
'Oh, Harry, dont't you see?' Hermione breathed. 'If she could have done
one thing to make absolutely sure that every single person in this school
will read your interview, it was banning it!'
---'Harry Potter and the order of the phoenix', P513
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.240.54