RosettaCodeData/Task/A+B/PHP/a+b-1.php

3 lines
86 B
PHP

fscanf(STDIN, "%d %d\n", $a, $b); //Reads 2 numbers from STDIN
echo ($a + $b) . "\n";