Explore BrainMass

Explore BrainMass

    For Loops and Nesting in C++

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Whate is the output of the code corresponding to the following pseudocode?

    Set a = 0
    For i = 0 Step 1 to 2
    For j = 0 Step 1 to 2
    Set b = a + j;
    End For (j)
    End For (i)
    Output b

    © BrainMass Inc. brainmass.com March 4, 2021, 9:29 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/loops-nesting-cplusplus-248715

    Solution Preview

    The output would be: b = 1

    Corresponding C++ code:

    int a ...

    Solution Summary

    This solution helps with loops and nesting in C++.

    $2.49

    ADVERTISEMENT