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...
Market research includes evaluating the products or services of competitors.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Which of the following IEEE standards describes the power output of a standard switch port?
A. 802.3ab B. 802.3ae C. 802.3af D. 802.3aa
Computer Science & Information Technology
A technician has prolonged contact with a thermal compound. Which of the following resources should be consulted?
A. HCL B. MSDS C. SLA D. HVAC
Computer Science & Information Technology
Error bursts occur ____ percent of the time.?
A. ?2 to 5 B. ?5 to 10 C. ?8 to 10 D. ?10 to 20
Computer Science & Information Technology