This content has been marked as final.
Show 5 replies

1. Re: what is the way to Calculate (C) how is the result are 3
gimbal2 Apr 3, 2013 10:03 AM (in response to 1000802)Try adding more System.out statements in between to see what the results of the different calculations are; then you may figure out where you are confused.
Also: you know what the modulo ( % ) operator actually does right? If not you will want to look that up in your book. I assume you have one, since this looks very much like a homework assignment. If you don't you should really get one. 
2. Re: what is the way to Calculate (C) how is the result are 3
1000802 Apr 3, 2013 11:35 AM (in response to gimbal2)c += a * b;
what is the result 
3. Re: what is the way to Calculate (C) how is the result are 3
baftos Apr 3, 2013 2:19 PM (in response to 1000802)997799 wrote:
Try adding more System.out statements in between to see what the results of the different calculations are; then you may figure out where you are confused.
c += a * b;
what is the result
Also: you know what the modulo ( % ) operator actually does right? If not you will want to look that up in your book. I assume you have one, since this looks very much like a homework assignment. If you don't you should really get one. 
4. Re: what is the way to Calculate (C) how is the result are 3
MackSix Apr 3, 2013 7:55 PM (in response to 1000802)997799 wrote:
What do you think it is?
c += a * b;
what is the result 
5. Re: what is the way to Calculate (C) how is the result are 3
gimbal2 Apr 4, 2013 1:39 AM (in response to baftos)baftos wrote:
Deja vu!997799 wrote:
Try adding more System.out statements in between to see what the results of the different calculations are; then you may figure out where you are confused.
c += a * b;
what is the result
Also: you know what the modulo ( % ) operator actually does right? If not you will want to look that up in your book. I assume you have one, since this looks very much like a homework assignment. If you don't you should really get one.