You need to sign in to do that
Don't have an account?
Rajasekhar RS
Integer
Given an integer, n, perform the following conditional actions:
If n is odd, print Weird
If n is even and in the inclusive range of 2 to 5 , print Not Weird
If n is even and in the inclusive range of 6 to 20 , print Weird
If n is even and greater than 20 , print Not Weird
If n is odd, print Weird
If n is even and in the inclusive range of 2 to 5 , print Not Weird
If n is even and in the inclusive range of 6 to 20 , print Weird
If n is even and greater than 20 , print Not Weird
Thanks!
You can try like this :
After this , click on execute and Debug only for the output.
If this helps , please mark this as Best Answer.
Thank you.