A

Admin • 831K Points
Coach

Q. What is the output of this program?

Code:
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
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.