Menentukan Besarnya Potongan Harga Dari Pembelian Barang
Posted by Budi Arieyanto | Posted in Borlant C++ | Posted on 05.05
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
void main()
{
int total;
clrscr();
cout<<"Nilai Pembayaran :"; cin>>total;
if(total>50000)
cout<<"Potongan harga yang diterima 5%"<<endl;
else if(total>=50000)
cout<<"Potongan harga yang diterima 20%"<<endl;
getch();
}


Comments (0)
Posting Komentar