返回列表 發帖
  1. #include<iostream>   
  2. #include<cstdlib>
  3. #include<cmath>      
  4. using namespace std;   
  5. int main()   
  6. {
  7.    double bp,gv;
  8.    re:
  9.    cout<<"請輸入底數:"<<endl;
  10.    cin>>bp;
  11.    cout<<"請輸入指數:"<<endl;
  12.    cin>>gv;
  13.    cout<<bp<<"der"<<gv<<"次方,值為"<<pow(bp,gv)<<endl;   
  14.     system("pause");   
  15.     return 0;            
  16. }
複製代碼

TOP

返回列表