Ask Question
27 August, 21:52

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

+3
Answers (2)
  1. 28 August, 00:40
    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
  2. 28 August, 01:48
    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.
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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers