精華區beta NTUCH-HW 關於我們 聯絡資訊
功能 用到的觀念 CODE #include<iostream>//header file #include<iomanip> #include<cmath> using namespace std; using std::setw; using std::fixed; using std::setprecision; #include<string> using std::string; using std::getline; int main() { double a=0,b=1,c; for(double j=1;j<11;j++) { for(double i=1;i<21;i++) { b=b*i; a=a+pow(j,i)/b; } a+=1; cout<<a<<endl; a=0; b=1; } system("pause"); return 0; } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.7.59