Computer Science, asked by eamiraval, 1 month ago


5)
Consider the following program.
public class Question
public static void main(String args[]) {
for (int b=2;b<3;b+=2) {
System.out.print (b+++b);
}
}
}
What will be the output of the program if it is executed?
a. 5
b. 2
C. 4
d. 1
Оа.

Answers

Answered by m81375052
0

Answer:

option c is the correct answer

Answered by sujaykumar1205
0

Answer:

answer c

Explanation:

b+ = 2

+

+

b =2

then answer is 4

Similar questions