Hey, this is the exercise that sounds me so strange, i can’t understand how to resolve it and educative hadn’t provided the solution.
Write a function that indicates whether or not to sell a stock. Use conditional statements to return a Boolean value that:
- returns
true
ifstockPrice
is greater than or equal tosellPrice
- returns
false
ifstockPrice
is less thansellPrice
Anyone would help me?