Write an if-else statement that compares the double variable


Write an if/else statement that compares the double variable pH with 7.0 and makes the following assignments to the int variables neutral , base , and acid : 
0,0,1 if pH is less than 7
0,1,0 if pH is greater than 7
1,0,0 if pH is equal to 7

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write an if-else statement that compares the double variable
Reference No:- TGS0120244

Expected delivery within 24 Hours