Ask Question

Which piece of pseudocode represents incrementing the loop control variable called count?

+1
Answers (2)
  1. 16 August, 16:18
    0
    Basing the answer in a While Loop

    intialize count tozero

    while {insert condition}

    Add1 to count

    End while

    int count=0

    int limit=10

    count=1

    while (count<=10)

    count=count+1

    print

    The variable count here is initialized tested and changed as the loop executes. it is an ordinary int variable, but it is used in a special role. The role is that of a loop control variable. however note that not all loops have loop control variables.

    In our case the type of loop we are looking at is a counting loop. it counts upwards using the loop control variable as a counter.
  2. 16 August, 16:30
    0
    Here's the pseudocode for incrementing the variable count inside a loop.

    Using while loop:

    Initialize count to zero

    While [insert condition here]

    Add 1 to count

    End while
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which piece of pseudocode represents incrementing the loop control variable called count? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers