Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=56387
Postga havola
DjHuSo [843] [off]
Salom bu mavzuda sonlarni bir biriga qo'shish uchun funcsiya yozamiz!
Natijasi:
5 + 10 = 15
7 + 13 = 20
2 + 4 = 6
<?php function sum($x, $y) { $z = $x + $y; return $z; } echo "5 + 10 = " . sum(5,10) . "<br>"; echo "7 + 13 = " . sum(7,13) . "<br>"; echo "2 + 4 = " . sum(2,4);?>
Natijasi:
5 + 10 = 15
7 + 13 = 20
2 + 4 = 6