0
If_statement
Task Given an integer, , perform the following conditional actions: If is odd, print Weird If is even and in the inclusive range of to , print Not Weird If is even and in the inclusive range of to , print Weird If is even and greater than , print Not Weird Input Format A single line containing a positive integer, . Constraints Output Format Print Weird if the number is weird. Otherwise, print Not Weird.
2 Antworten
+ 4
what's your real question?
where did you get stuck?
show us your code, and we are ready to help
+ 3
This sounds like a task or challenge. Ready made codes are not provided here. You should post your code attempt if you would like help.