The problem in the program diagram of solving inequality ax + b > 0 1: Input a, B 2: a > 0? 3: Yes, output x > - B / a no, output X

The problem in the program diagram of solving inequality ax + b > 0 1: Input a, B 2: a > 0? 3: Yes, output x > - B / a no, output X

You have forgotten that a should be divided into the past after the term is shifted. The positive and negative of a directly affect the direction of the inequality. Therefore, two or three is used to judge whether a is greater than 0 or less than 0