Computer Applications
Evaluate the following if the value of x = 20 and y = 20 and z = 10
z *= ++x * (y--) - y
Related Questions
Identify the operator that gets the highest precedence while evaluating the given expression:
a + b % c * d - e
- +
- %
- -
- *
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.
Rewrite the following program segment using logical operators:
if(x > 5) if(x > y) System.out.println(x + y);