128k views
2 votes
After running the following pseudocode, what will the value of VARIABLE be? 1. Set value of VARIABLE to 5 2. Increase the value of VARIABLE by 3 3. If the value of VARIABLE is odd, increase its value by 1 4. If the value of VARIABLE is even, increase its value by 1 5. If the value of VARIABLE is odd, increase its value by 1​

1 Answer

3 votes

Answer:

10

Step-by-step explanation:

you start with 5 5

you add 3 8

the variable is not odd so skip 8

the variable is even so add 1 9

the variable is odd so add 1 10

10

hope this helps <3

User JohnnyDH
by
5.4k points