Complete the following program to test the output: if(x>10), then x+ = 1; else x-=1;
Answers
Answered by
0
if x=9 output will be 8
if x=11 output will be 12
if x=11 output will be 12
Answered by
0
Stand out from the while circle, which tests the condition before the code inside the square is executed, the do-while circle is a leave condition circle.
This implies the code should dependably be executed first and afterward the articulation or test condition is assessed.
In case it is valid, the code executes the body of the circle once more.
Similar questions