boolean logic | Sololearn: Learn to code for FREE!

-1

boolean logic

The comfortable relative humidity for humans is between 40% and 60%. The given program takes the percent of humidity as input. Task Complete the code to output "norm" if the taken percent of humidity is in the range of 40 and 60 inclusive. Don't output anything otherwise. Sample Input 45 Sample Output norm

12/29/2021 3:19:48 PM

Atul Diwan

2 Answers

New Answer

+3

You accidentally posted this twice. Can you please undo the duplicate? Thanks ...

+2

Use the if statement: ... if ...>=40 and ...<=60: ... Do the rest