Question: What is the output of the program segment below? int num 1 = 5 0 0 ; int num 2 = 2 0 0 ;

What is the output of the program segment below?
int num1=500;
int num2=200;
int num3=300;
int average = num1+ num2+ num3/3; System.out.println(average);
(A)333
(B)333.333333333333
(C)334
(D)800
(E) Syntax Error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!