昱得資訊工作室
麻辣學園
歡迎光臨, 訪客. 請先 登入註冊一個帳號.
您忘了 啟用您的帳號嗎?
2008-07-20, 13:16:14
首頁 說明 登入 註冊 贊助論壇 想當作者?
新聞: 會員注意!!麻辣家族討論區[通用版規],請詳閱!!


+  麻辣家族討論區
|-+  程式設計
| |-+  程式設計不分區
| | |-+  vc++.NET的階層問題
0 會員 以及 1 訪客 正在閱讀本篇主題. « 上一篇主題 下一篇主題 »
頁: [1] 向下 列印
作者 主題: vc++.NET的階層問題  (閱讀 1347 次)
et0115
訪客


電子郵件
vc++.NET的階層問題
« 於: 2005-10-23, 11:34:20 »

The factorial of a positive integer n is written n !(pronounced "n factorial") and is defined as follows:
n!=n*(n-1)*(n-2)*...*1 (for values of n greater than or equal to 1)
and
n!=1(for n=0)
for example,5!=5*4*36*2*1,which is 120.
a) Write an application that reads a positive integer from an input dialog and computes and prints its factorial
b) Write an application that estimates the value of the mathematical constant e by using the formula e=1+1/1!+1/2!+...
c) Write an application that computes the value of -- by using the formula
e的X次方=1+x/1!+x的2次/2!+....
這是題目...應該市說階層的寫法 但是不會寫...拜託大大教一下
已記錄
頁: [1] 向上 列印 
« 上一篇主題 下一篇主題 »
跳到:  


本頁花了 0.331 秒, 以及 17 次的資料庫查詢.