Home » JAVA Programming » Basic Operators » Question
  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);
    }
    }
    1. 50
    2. 40
    3. 30
    4. 20
    5. 10
Correct Option: A

Ans: 50



Your comments will be displayed only after manual approval.