📅  最后修改于: 2022-03-11 14:44:57.099000             🧑  作者: Mango
#include
using namespace std;
int main()
{
float amount, discount, topaid;
cout<<"Enter Total Amount: ";
cin>>amount;
if(amount<=100)
cout<<"Amount to be Paid: "<100 && amount<=200)
{
discount = (amount*5)/100;
topaid = amount-discount;
}
else if(amount>200 && amount<=400)
{
discount = (amount*10)/100;
topaid = amount-discount;
}
else if(amount>400 && amount<=800)
{
discount = (amount*20)/100;
topaid = amount-discount;
}
else
{
discount = (amount*25)/100;
topaid = amount-discount;
}
cout<<"Amount to be Paid: "<