Which code segment results in "true" being returned if a number is odd? Replace "MISSING CONDITION" with the correct code segment.

a) num % 2 == 0;
b) num % 2 ==1;
c) num % 1 == 0;
d) num % 0 == 2;

Which code segment results in true being returned if a number is odd Replace MISSING CONDITION with the correct code segment a num 2 0 b num 2 1 c num 1 0 d num class=

Respuesta :

Answer:

Which code segment results in "true" being returned if a number is odd? Replace "MISSING CONDITION" with the correct code segment.

Explanation:

num % 2 ==1;