#include using namespace std; int main(int argc, char* argv[]) { int d, a, totle, sub=0; cout << "請輸入今天所希望的營業額:\n"; cin >> totle; while (sub > d; if (d <= 1650) a=70; else if ((d-1650)%350 != 0) a=((d-1650)/350*5+5+70); else a=((d-1650)/350*5+70); cout << "車資為" << a << "元。\n"; if (a <= 150) cout << "多走路有益健康。\n"; else if (a>150 && a<=500) cout << "不錯的客戶,多和他聊聊。"; else cout << "大客戶,請提供名片,以後再服務。\n"; sub += a; } cout << "到達今天所希望的營業額" << totle << ",累計營業額為" << sub <<"。收工了!\n"; return 0; }