program toko buku

0

Category :

PROGRAM SEDERHANA DALAM BORLAND C++
#include<conio.h>
#include<stdio.h>
#include<iostream.h>

main()
{
float total_beli, diskon, total_bayar;

clrscr();

cout<<"Toko Buku Kamseupay"<<endl;
cout<<"==================="<<endl;
cout<<"Total Pembelian = Rp. ";cin>>total_beli;
cout<<endl;

if (total_beli>=100000)
    diskon = 0.1 * total_beli;
else
    diskon = 0;

cout<<"======================"<<endl;
cout<<"Diskon = Rp. "<<diskon<<endl;
total_bayar=total_beli-potongan;
cout<<"Total Bayar = Rp. "<<total_bayar;
getch();
}

<<"="=================="<<endl;" cout<<"total="" pembelian="Rp."> 
 jangan lupa berkunjung kesini

0 komentar:

Poskan Komentar

Feed facebook twitter friendfeed G+ Submit