摘要: Factorials The factorial of an integer N, written N!, is the product of allthe integers from 1 through N inclusive. The factorial quickly becomesvery large: 13! is too large to store in a 32-bit integer on mostcomputers, and 70! is too large for most floating-point variables. Yourtask is to find th. 阅读全文
posted @ 2013-01-31 11:24 cssystem 阅读(204) 评论(0) 推荐(0)
摘要: Fractions to Decimals Write a program that will accept a fraction of the form N/D, whereN is the numerator and D is the denominator and print the decimalrepresentation. If the decimal representation has a repeating sequenceof digits, indicate the sequence by enclosing it in brackets. For example,1.. 阅读全文
posted @ 2013-01-31 09:01 cssystem 阅读(440) 评论(0) 推荐(0)