Solve part (b) of ques 2
Attachments:
Answers
Answered by
0
Answer: image is not clear
Answered by
0
Output of the given code:
Output:
Line 1= 5&8
Line 2=11&9
Line 1= 6&9
Line 2=12&10
Explanation:
- In the given code two integer variable "A and B" is declared, that holds a value, that is '5 and 10', in the next line a for loop is declared that use variable that starts from 1 and end with 2. In the first pass and second pass, it will take the value from the initialization section.
- Line 1, the value of variable A is printed, and the value variable B is decreases by 2.
- Line 2, first it increments the value of variable B, and increment the value of variable A by 3.
Learn more:
- increment and decrement: https://brainly.in/question/5252456
Similar questions