Computer Applications
Evaluate the following if the value of m = 10 and n = 6
m -= 9 % ++n + ++n / 2
Java Operators
39 Likes
Answer
m -= 9 % ++n + ++n / 2
⇒ m = m - (9 % ++n + ++n / 2)
⇒ m = 10 - (9 % 7 + 8 / 2)
⇒ m = 10 - (2 + 4)
⇒ m = 10 - 6
⇒ m = 4
Answered By
25 Likes
Related Questions
Evaluate the given expression when the value of a=2 and b=3
b*=a++ - ++b + ++a; System.out.println("a= "+a); System.out.println("b= "+b);A store has purchased some cola cans of various brands. It purchased 50 cans @ ₹15 per can, 30 cans @ ₹20 per can and 40 cans @ ₹21 per can. Write a Java program to compute how much amount did the store pay.