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 both variables a and b are greater than 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...
To move a picture behind text, use the ________ button
Fill in the blank(s) with correct word
Computer Science & Information Technology
While doing a text search of an archive of email messages, you decide to narrow your search by using some modifiers such as AND and OR. These modifiers are called _____________ operators
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology