Translate each of the following conditions into logical conditions that can be used in an if statement. Assume that the variables x, y and z have already been declared. You can use the Math.abs (int) function, which returns the absolute value of the number that you receive as a parameter a. z is odd b. z is not less than and squared c. x is not a multiple of z d. v and w have the same sign and. x is larger than the absolute value of z F. m has exactly 2 digits and is negative g. b is closer to than from c
Aucun commentaire:
Enregistrer un commentaire