|
L5
Nov 5, 2001 22:32:37 GMT -5
Post by Sky on Nov 5, 2001 22:32:37 GMT -5
I really don't understand your concern Brutal Chicken...i tried using (int) d just for fun and it works the same BTW 4==4.0 is true EDIT: Did u use i >= (d/2) for the while condition???
|
|
|
L5
Nov 5, 2001 22:40:49 GMT -5
Post by Brutal_Chicken on Nov 5, 2001 22:40:49 GMT -5
Actually I used while ( i <= d && i >= d/2).
So 4 == 4.0? No problemo then.
|
|
|
L5
Nov 6, 2001 19:53:30 GMT -5
Post by browntaximan on Nov 6, 2001 19:53:30 GMT -5
I just want you people to also keep in mind that they may use negative doubles and want their respective numbers to be printed out. It'll be a few more lines of coding, but that will take away any chances of losing marks.
|
|
|
L5
Nov 6, 2001 20:08:37 GMT -5
Post by Yingster on Nov 6, 2001 20:08:37 GMT -5
I just want you people to also keep in mind that they may use negative doubles and want their respective numbers to be printed out. It'll be a few more lines of coding, but that will take away any chances of losing marks. Why would they if on the assignment sheet it says reads from the keyboard a positive double d
|
|
|
L5
Nov 6, 2001 20:49:28 GMT -5
Post by Majin_Blues on Nov 6, 2001 20:49:28 GMT -5
ah... note it says on the course site:
d >= i >= d/2
this is untrue if they're negative, if so, the signs would be reversed
you might be thinking of the num3Print... that's the one you have to account for negatives...
|
|