1.

What is the output of this program?

public class operators_Example
{
public static void main(String args[])
{
int num1 = 10;
int num2 = 20;
int num3;
num3 = num2 + num2 * num1 / num2 + num2;
System.out.print(num3);
}
}

A. 50
B. 40
C. 30
D. 20
E. 10
Answer» B. 40


Discussion

No Comment Found

Related MCQs