TOPIC
PHP - Desafio 1010
DiogoValente asked 2 years ago
<?php
$codPeca = fgets(STDIN); $saldoPeca = fgets(STDIN); $vlrUniPeca = fgets(STDIN);
$codPeca2 = fgets(STDIN); $saldoPeca2 = fgets(STDIN); $vlrUniPeca2 = fgets(STDIN);
$valorProd1 = number_format(($saldoPeca $vlrUniPeca), 2 ,'.', ''); $valorProd2 = number_format(($saldoPeca2 $vlrUniPeca2), 2 ,'.', ''); $ValorTotal = number_format(($valorProd1 * $valorProd2), 2, ".", '');
echo " VALOR A PAGAR: R$ $ValorTotal\n"; ?>
Sou iniciante, por favor tenham paciência rsrsrsrs o que estou fazendo de errado?
This topic has not been answered yet. Be the first!