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.

16th Jul 2024, 6:20 AM
G S N Naveen Kumar
G S N Naveen Kumar - avatar
2 Antworten
+ 4
what's your real question? where did you get stuck? show us your code, and we are ready to help
16th Jul 2024, 7:13 AM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 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.
16th Jul 2024, 5:23 PM
Keith
Keith - avatar