#include
using namespace std;
int main()
{
int money;
do{
cout << "請輸入購買金額:" ;
cin >> money;
if(money>=10000){
cout << "打八折,共為:" << money-(money*0.2)<
cout << "打八五折,共為" << money-(money*0.15)<
cout << "打九折,共為" << money-(money*0.1)<
cout << "打九五折,共為" << money-(money*0.05)<
cout << "無折扣"<
system("pause");
return 0;
}
全站熱搜
留言列表