Answremove the old sound and video card
Explanation:
for them to be able to be installed you have to get rid of the one that your trying to replace
Answer:
The correct code to the given question is
if ((counter % 10) == 0) // check the condition
{
System.out.println("Counter is divisible by ten: " + counter); // display
}
else // check the condition
{
System.out.println("Counter is not divisible by ten: " +counter); // display the //value
}
counter++; // increment the value of counter
Explanation:
Following are the description of code
- In the given question we have to check the condition that the given number is divisible by 10 or not .
- In the if block if the number is divisible by 10 then it print the value of number and increment the value of counter .
- In the else block if the number is not divisible by 10 then it print the value of number and increment the value of counter .
- It means the value of counter is increases in the if block as well as in the else block .So we have to remove the counter statement from there and place outside the if and else block .
Answer:
c. count 5 is sometimes true/ sometimes false at point 2
Explanation:
The while-loop statement is a conditional looping statement in programming that executes a block of code if a condition is met.
In the program, the value of the count variable is first initialized to zero but the while-loop would continuously increment the count variable by one if the count variable is less than five, which means that the while-loop stops and the code block is not executed at count equal to five.