Write a PHP program to check if y is greater than x, and z is greater than y from three given integers x,y,z
- برمجة بي اتش بي
- 2021-09-08
- mhanasmh00489829403
الأجوبة
<?php
function test($x, $y, $z)
{
return $x < $y && $y < $z;
}
var_dump(test(1, 2, 3))."\n";
var_dump(test(4, 5, 6))."\n";
var_dump(test(-1, 1, 0))."\n";
Sample Output:
bool(true) bool(true) bool(false)
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال