Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions funcoes.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php // generated from http://www.generatedata.com/

//Calcular o valor total de vendas
function getValorTotal( $pedidos ) {

$total = 0;
Expand All @@ -10,15 +10,13 @@ function getValorTotal( $pedidos ) {

}

return " O valor total das vendas : " . $total;
return " O valor total das vendas é de R$ : " . $total;

}



/////////////////////////
///////////////2 CONDICAO
/////////////////////////
//Retornar Tres mais vendidos

function getTresMaisVendidos( $pedidos ) {

Expand Down Expand Up @@ -90,9 +88,7 @@ function getTresMaisVendidos( $pedidos ) {

}

/////////////////////////
///////////////3 CONDICAO
/////////////////////////
//Retornar 10 menos vendidos

function getDezMenosVendidos( $pedidos ) {

Expand Down Expand Up @@ -233,4 +229,4 @@ function getTresMaisVendidos33( $pedidos ) {

}

}
}