返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.    float x,y;
  6.    cout<<"請輸入您的幸運號碼x:";
  7.    cin>>x;
  8.    cout<<"請輸入您的幸運號碼y:";
  9.    cin>>y ;
  10.    cout<<"幸運號碼x為:"<<x<<",幸運號碼y為:"<<y<<endl;   
  11.    cout<<"本日幸運號碼為:"<<((x*y)/3)*4<<endl;
  12.    system("pause");
  13.    
  14.    return 0;
  15. }
複製代碼

TOP

返回列表