1. What are the four steps of a typical loop? Which of the steps are repeated?
2. Identify the four steps of the following while loop:
int sum = 0;
int count = 0;
while (count
{
sum = sum + count;
count = count + 1;
}
3. What is the value of sum after the loop in the previous exercise completes its execution?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here