Write a PHP program that accepts six numbers as input and sorts them in descending order
- برمجة بي اتش بي
- 2021-09-08
- mhanasmh00489829403
الأجوبة
<?php
$stdin = trim(fgets(STDIN));
$nums = explode(" ", $stdin);
rsort($nums);
print("After sorting the said integers:\n");
echo implode(' ', $nums);
?>
Sample Output:
After sorting the said integers: 9 8 7 6 4 2
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال