Шивашки Цех PHP
Здравейте
имам проблем със задача 6 Шивашки цех! Получавам различен изход от този който е даден.
Please, help!
<?php
$numberTables = intval (readline());
$lenghtTablesmetres = floatval (readline());
$widthTablesmetres = floatval(readline());
$areaCover = ($numberTables * ($lenghtTablesmetres + 2 * 0.30))*
($widthTablesmetres + 2 * 0.30);
$areaKarre = ($numberTables* ($lenghtTablesmetres / 2))*
($widthTablesmetres / 2);
$priceOrdersUSD = ($areaCover * 7) + ($areaKarre * 9);
$priceOrdersUSD = round ($priceOrdersUSD, 2);
//$priceOrdersUSD = number_format($priceOrdersUSD,2,".","");
$priceOrdersBGN = ($priceOrdersUSD * 1.85);
//$priceOrdersBGN = number_format($priceOrdersBGN,2,".","");
$priceOrdersBGN = round ($priceOrdersBGN,2);
echo "$priceOrdersUSD USD".PHP_EOL;
echo "$priceOrdersBGN BGN".PHP_EOL;