Read two whole numbers and print their sum.
<?php $a = (int) trim(fgets(STDIN)); $b = (int) trim(fgets(STDIN)); echo $a + $b, PHP_EOL;
Read two whole numbers and print their sum.
<?php $a = (int) trim(fgets(STDIN)); $b = (int) trim(fgets(STDIN)); echo $a + $b, PHP_EOL;