202. Lemonade Stand Calculator

Easy · Math

You're running a lemonade stand! Each cup sells for `price` coins. Given the number of `cups` sold and the `price`, return the total earnings. But if you sold 0 cups, return the string 'No sales today!'

Examples

Example 1
Input: cups=5, price=3
Output: 15
Explanation: 5 × 3 = 15
Example 2
Input: cups=0, price=3
Output: 'No sales today!'
Explanation: Zero cups sold

Constraints