Translate each of the following English statements into logical tests
that could be used in an if/else statement. Write the appropriate logical test for each statement below. Assume that three int variables, x, y, and z, have already been declared.i. y is a nonnegative one-digit number.my solution is y % 10 == y && y >= 0 or y % 10 == y && y > 0 or just y % 10 == yThe practiceit website is having issues with this one question so If you could give me couple solutions that work I could try.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here