Computer Applications
Write one difference between / and % operator.
Java Operators
ICSE 2017
16 Likes
Answer
/ operator computes the quotient whereas % operator computes the remainder.
Answered By
10 Likes
Related Questions
if (a>b&&b>c) then largest number is:
- b
- c
- a
- wrong expression
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.