Q. What is the output of the Java code snippet?

Code:
int a=10, b=5, c=3;
int d = a+c/2*b;
System.out.println(d);
  • (A) 17.5
  • (B) 32.5
  • (C) 15
  • (D) 30
πŸ’¬ Discuss
βœ… Correct Answer: (C) 15

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
242
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate