Assume that x is already defined as being of type int Write

Assume that x is already defined as being of type int . Write a single expression that will return true if x is 4, 7, or 11.

Solution

Answer: single expression is a follows

if( x == 4 || x == 7 || x == 11){

return true;

}

Assume that x is already defined as being of type int . Write a single expression that will return true if x is 4, 7, or 11.SolutionAnswer: single expression is

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site