Get paid to share your links!

Program Kasir Sederhana

Wednesday, March 7, 2012

#include
#include
#include

void main()
{
int tot_beli, tot_byr, disc=0;
char nama_kasir [30];
char nama_pembeli [30];

cout<<" TOKO HALAL MAKMUR JAYA\n"; cout<<"Dapatkan diskon 20% untuk setiap\n"; cout<<"total pembelian Rp. 50.000 keatas\n"; cout<<"---------------------------------\n"; cout<<"Nama Kasir : "; gets(nama_kasir); cout<<"Nama Pembeli : "; gets(nama_pembeli); cout<<"---------------------------------\n"; cout<<"Total Pembelian : Rp. "; cin>>tot_beli;
if (tot_beli>=50000)
disc=0.2*tot_beli;

cout<<"Potongan : Rp. "< cout<<"------------------------------------ -\n";
tot_byr=tot_beli-disc;
cout<<"Total Pembayaran : Rp. "< getch();
}
Share this article :

0 comments:

Speak up your mind

Tell us what you're thinking... !

Followers

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Blog - All Rights Reserved
Template Created by Creating Website Inspired by Sportapolis Shape5.com
Proudly powered by Blogger