fork(12) download
  1. Program Inequation;
  2. Var a, b : Real;
  3. Begin
  4. Writeln('a = ');
  5. Readln (a);
  6. Writeln('b = ');
  7. Readln (b);
  8. If a>0 Then Writeln('x < ', -b/a:0:2)
  9. Else If a<0 Then Writeln('x > ', -b/a:0:2)
  10. Else If b<0 Then Writeln('IR')
  11. Else Writeln('Impossible');
  12. End.
Success #stdin #stdout 0s 276KB
stdin
5
3
stdout
a = b = x < -6.00000000000000E-001