Answer to Question #698 in Java | JSP | JSF for Danielle
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
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!
Learn more about our help with Assignments:
JavaJSPJSF
Comments
Leave a comment