Solve Me First
Sample Input
a = 2
b = 3
Sample Output
5
Explanation
The sum of the two integers and is computed as: .
php
<?php
function solveMeFirst($a,$b){
// Hint: Type return $a + $b; below
return $a + $b;
}
$handle = fopen ("php://stdin","r");
$_a = fgets($handle);
$_b = fgets($handle);
$sum = solveMeFirst((int)$_a,(int)$_b);
print ($sum);
fclose($handle);
?>
Comments
Post a Comment