10th Oct 2024, 12:52 PM
eli
eli - avatar
3 Respuestas
+ 3
remove line 8
10th Oct 2024, 12:55 PM
Lisa
Lisa - avatar
+ 2
It works perfectly no need to do any changes
10th Oct 2024, 2:27 PM
Aysha
Aysha - avatar
+ 2
eli change line 9 to: if (num%2 == 0) { this is for odd and even and yes if (num>0) { this is for positive and negative numbers your code works as intended
10th Oct 2024, 4:16 PM
BroFar
BroFar - avatar