<?php
$nama="mastomi";
$tanggal="12/07/2013";
$namabarang="baju";
$harga=120000;
$jumlah=5;
$disk=0.2;
$totalharga=$harga *
$jumlah;
$potoganharga=$totalharga
* $disk;
$totalbayar=$totalharga
- $potonganharga;
echo "Nama
Pembeli : $nama";
echo "Tanggal
Beli : $tanggal";
echo "Nama
Barang : $namabarang";
echo "Harga
Barang : $harga";
echo "Jumlah
Barang : $jumlah";
echo "Total
Harga : $totalharga";
echo "Potongan
Harga: $potonganharga";
echo "Total
Bayar : $totalbayar";
?>
0 komentar:
Posting Komentar