fork download
  1. <?php
  2. print("The PHP Subtract/Divide Program.\n");
  3. $a = 100;
  4. $b = 50;
  5. $c = ($a - $b);
  6. print("A ".$a." B ".$b." C ".$c."\n");
  7. $e = 2500;
  8. $f = 50;
  9. $g = ($e / $f);
  10. printf("E ".$e." F ".$f." G ".$g."\n");
Success #stdin #stdout 0.03s 25952KB
stdin
1
2
10
42
11
stdout
The PHP Subtract/Divide Program.
A 100 B 50 C 50
E 2500 F 50 G 50