MINIMARKET
Elsa membeli
pada sebuah minimarket berupa
·
Gula : ½ kg
·
Telur : 5 butir
·
Susu : 1 bks
Dengan biaya :
·
Gula 1 kg : 12000
·
Telur 1 butir :1000
·
Susu 1 bungkus : 5000
<?php
$nm_brg1=
"gula";
$nm_brg2=
"telur";
$nm_brg3=
"susu";
$hrg_brg1= 12000;
$hrg_brg2= 1000;
$hrg_brg3= 5000;
$jmlh_brg1= 0.5;
$jmlh_brg2= 5;
$jmlh_brg3= 1;
$ttl_brg1=
$jmlh_brg1*$hrg_brg1;
$ttl_brg2=
$jmlh_brg1*$hrg_brg2;
$ttl_brg3=
$jmlh_brg3*$hrg_brg3;
$total_biaya=
$ttl_brg1+$ttl_brg2+$ttl_brg3;
?>
Tidak ada komentar:
Posting Komentar