mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-15 23:31:10 +00:00
Вычитка глав с 9 по 17
This commit is contained in:
10
complicated_functions/sqrt.php
Normal file
10
complicated_functions/sqrt.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
echo sqrt(4) . '<br />'; // 2
|
||||
|
||||
$result = sqrt(4);
|
||||
echo "$result<br />"; // 2
|
||||
|
||||
$x = 3;
|
||||
$y = 5;
|
||||
$distance = sqrt($x * $x + $y * $y);
|
||||
echo $distance; // 5.8309518948453
|
Reference in New Issue
Block a user