C++ Diskon

#include<iostream>
#include<conio.h>
int main(){
int a,b,c;
cout<<"\n       ****************\n";
cout<<"       ** ASIA PLAZA **\n";
cout<<"       ****************\n\n";
cout<<"  Masukkan total harga belanja : Rp. ";
cin>>a;
b=a>100000;
c=a*50/100;
if(b){
    cout<<"\n\n      Diskon Harga 50% \n\n";
cout<<"   TOTAL HARGA : Rp. "<<c;
   }else{
    cout<<"\n\n   TOTAL HARGA : Rp. "<<a;}
getch();
}

0 Response to "C++ Diskon"

Posting Komentar