Assume the int variables i, lo, hi, and result have been declared and that lo and hi have been initialized. Write a for loop tha
t adds the integers between lo and hi (inclusive), and stores the result in result. Your code should not change the values of lo and hi. Also, do not declare any additional variables -- use only i, lo, hi, and result.
The question says result was declared but not initialized, so using result without initializing it to 0 would throw an error as result would be undefined and you can't add a number to undefined
Another way to do it to keep everything inside the loop would be
for (i=lo ; i<=hi; i++){
if (i==lo) result= 0;
result += i;
}
but this is impractical since it would add unnecesary operations in each cycle of the loop
A UPS or Uninterruptable Power supply makes
sure that you have backup in case there is a power outage in your area. It
provides ample time for you to save all files before shut down.
Keeping as few emoji's as possible. This helps because lots of emoji's can make things confusing and/or annoying. This just means being kind to the person you're messaging and not making things confusing.