#P0011. 会员折扣
会员折扣
1. Description
Calculate actual payment based on membership status and original price
- No discount for non-member
- Members will get 10% off when original price is over 100
2. Input & Output
Input:
- A floating point number representing price
- A string "True" / "False",representing if the customer is a member
- Use
input()as input. Notice that the value you get frominput()is a string - Multiple inputs will be in same line, separated by space
Output:
- A floating point number round up to 2 decimals
- Use
print()for your output
Example
# Input:
100 True
# Output:
90.00
# Input:
200 False
# Ouput:
200.00