Write an if statement to do the following. (Assume the variables have been declared. You do not need to declare the variables. Simply construct an if statement.) Hint: You will need to use comparison operators and a logical operator.

If either variable a or b is equal to 0, then increment the value of the variable c by 1.

if (a == 0 | | b == 0)
{
c += 1;
}

Computer Science & Information Technology

You might also like to view...

Select the most commonly used site organization for commercial web sites

a. random b. linear c. hierarchical d. none of the above

Computer Science & Information Technology

The Stored Communications Act was a subset of which piece of legisation?

a. The Privacy Act b. Sarbanes Oxley c. The Electronic Communications Privacy Act d. None. This covers health information.

Computer Science & Information Technology