Answer to Question #698 in Java | JSP | JSF for Danielle

Question #698
Assume the variable below are declared and initialized as shown:
int n,m;
double x,y;
n=23; m=5; x=2.3; y=4.5

what is the value of each expression below?
1. n/m 2. n%m 3. 25%m 4. m/n 5. n-x * 2 6. y-x+m 7. (double)n/m
1
Expert's answer
2010-10-06T06:38:23-0400
n/m: 4
n%m: 3
25%m: 0
m/n: 0
n-x: 20.7
y-x+m: 7.2
(double)n/m: 4.6

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS