Answer:
The first one. Important notice sum should be equal to zero before calculating the total sum.
Answer:
Explanation: If and else statements are one of the most important parts of programming.
1. You add an if you do something if a condition is met. For example, if number of chocolates equals zero( a condition), and inside you can do something like buy more chocolates. And else statement happens if the if condition isn't met and you want to the code to do something else. You don't need this if you don't want anything to happen if the if condition isn't true.
2. This might be used in a number guessing game. Let's say you have to guess a number, if its correct the computer should correct but if you get it wrong it should display wrong. You can write if the number the user writes in equal to the number you are supposed to guess say correct. Else say wrong
Hope this helps. Please mark as brainliest! Thanks!
Answer:
D
Explanation:
They all fit the definition of a computer