πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 50

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
206
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
85%
Success Rate