【C++】促銷商品的折扣計算

本店滿500元享受9折優惠,滿1000元享受8折優惠,滿2000元享受7折優惠,滿3000元享受9折優惠。 #include"iostream.h" #include"stdio.h" //本店滿500元享受9折優惠,滿1000元享受8折優惠,滿2000元享受7折優惠,滿3000元享受6折優惠。 void main() { int imoney; cout<<"請輸入您消費的金額:"<<endl
相關文章
相關標籤/搜索