Write one C bool expression that will be true whenever doubl

Write one C++ bool expression that will be true whenever double variable A is strictly between 2 .7 and 4 .3. No comments or main () program are necessary. Be sure to strike the Enter key before you click on the Save button.

Solution

Answer:

Below is the expression which will return true when double variable A is between 2.7 and 4.3 inclusive.

if(A >=2.7 && A <=4.3){

}

 Write one C++ bool expression that will be true whenever double variable A is strictly between 2 .7 and 4 .3. No comments or main () program are necessary. Be

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site