I'm doing the exercises in my book, but I'm not sure how to answer this question. C programming
If i and j are positive integers does (-i) /j always have the same value as............ -(i /j )? Why?
I don't quite understand this, if we put a pos integer in the first set, there is
a - in front of it (in parentheses) so that makes the numerator negative, the dem is pos, so the value is negative.
The second set the - sign applies to the entire fraction, so neg divided by neg is pos.
But I'm not sure if this is right in programming? Because the question says that i and j are positive integers, so how can we put a - in front?
Thanks
If i and j are positive integers does (-i) /j always have the same value as............ -(i /j )? Why?
I don't quite understand this, if we put a pos integer in the first set, there is
a - in front of it (in parentheses) so that makes the numerator negative, the dem is pos, so the value is negative.
The second set the - sign applies to the entire fraction, so neg divided by neg is pos.
But I'm not sure if this is right in programming? Because the question says that i and j are positive integers, so how can we put a - in front?
Thanks