Assume that a bool variable workedovertime has been declared , and that an int variable hoursworked has been declared and initialized . write a statement that assigns the value of workedovertime to true if hoursworked is greater than 40 and false otherwise.

Respuesta :

workedovertime = ( hoursworked > 40 ) ? true : false;