Jumat, 21 Oktober 2016

CONTOH PROGRAM C++ KASIR DENGAN DISKON DAN BONUS

CONTOH TUGAS C++ KASIR DENGAN DISKON DAN BONUS

contoh hasil program kasir
#include <iostream>
#include <conio.h>
#include <stdio.h>


using namespace std;

int main()
{
    int  harga,code;
    int  jumlahb,dis;
    char bonus[30];

    cout << "Masukkan Harga             : ";cin  >>harga;
    cout << "Jumlah Belinya             : ";cin  >>jumlahb;

    cout << "\n\n================================================================================" << endl;


    if  (jumlahb>=15){

            dis=harga*5/100;
            cout <<"Diskonnya      : "<<dis<< endl;
            cout <<"Bonusnya       : Payung"<< endl;
    }

    else{

            dis=0;
            cout <<"Diskonnya      : "<<dis<< endl;
            cout <<"Bonusnya       : Tidak Dapat"<< endl;}

    getch ();

}

SEMOGA BERMANFAAT

2 komentar:

  1. How to make money from betting in baseball: A guide for all you need
    The biggest misconception when 인카지노 it comes to betting in baseball is that you want to bet 메리트 카지노 주소 on the team you think will win. The bookies want หารายได้เสริม you to win on

    BalasHapus