e. Predict the output:
boolean t=true;
for(a=1;b=5;t!=false:)
System.out.print(b):
t=a(less than)b--;
Answers
Answered by
1
Answer:
The answer is true.
Explanation:
Because since the value of t is true and the condition in for loop is stating that t is not equals to false . So, it is true that t is not equals to false. And in the down it is written that a is less than b-- , So, b-- states that the value of b is -1
So, the value will be 4 . And it is also stating that the value of a is less than 4 . So, it is true that a is less than b.
Similar questions