zadanie1 - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of zadanie1.php
- <?php
- $product1 = 'Чайник';
- $product2 = 'Кофейник';
- $product3 = 'Кипятильник';
- $price1 = 300;
- $price2 = 150;
- $price3 = 270;
- echo $product1.' => '.$price1."\n";
- echo $product2.' => '.$price2."\n";
- echo $product3.' => '.$price3."\n";
- $avg = ($price1+$price2+$price3)/3;
- echo 'средняя цена товара => '.$avg;
File Description
- zadanie1
- PHP Code
- 13 Sep-2022
- 350 Bytes
You can Share it:
Latest PHP Pastes