Hello, I'm very new to coding and I'm trying to write a very basic program to tell the user what to wear when it's certain temperatures. I have it set so that it will produce a random number between 0 and 30. I am wondering how I write a statement for what happens if it's between two numbers, 10 and 20. So far I have
if (weather <= 10) {
(forcast = "cold");
} else if (weather < 20 > 10 ) {
(forcast = "warm");
I also tried (weather 20 < 10), (weather 10 > 20)
if (weather <= 10) {
(forcast = "cold");
} else if (weather < 20 > 10 ) {
(forcast = "warm");
I also tried (weather 20 < 10), (weather 10 > 20)