fork(4) download
  1. <?php
  2. $total = 4000;
  3. $pctm = -30.00;
  4. echo "Com desconto: " . $total * (1+($pctm/100));
  5. echo PHP_EOL;
  6. $pctm = 30.00;
  7. echo "Com acréscimo: " . $total * (1+($pctm/100));
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
Com desconto: 2800
Com acréscimo: 5200