I am trying to write a program to create a function that takes two arguments. Both arguments are integers, a and b. And it will return true if one of them is 10 or if their sum is 10. And I am doing it on “Codemama” platform. The numbers are given on the console area in codemama platform and the output is not showing as expected. Do I have to call “lookForTen” function? Because if I have to then I have to pass the arguments after calling the function. But as I said it’s already available in the console. And the output is supposed to be “true” but it’s not showing anything Here’s the code below. Please help me find the mistake.
<?php
# Write your PHP code from here
$a = trim(fgets(STDIN));
$b = trim(fgets(STDIN));
function lookForTen($a, $b):bool{
if($a + $b == 10){
return true;
}
else{
return false;
}
}
?>