#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<string.h>
main()
{
int total,pot,jumlah;
char
a;
cout<<"total pembelian";cin>>total;
if(total>=50000)
{pot=0.2*total;
strcpy(hadiah,"jaket");}
else
{pot=;
strcpy(hadiah,"tidak dapt");}
jumlah=total-pot;
cout<<"besarnya potongan rp"<<pot<<endl;
cout<<"jumlah yang harus di bayar"<<jumlah<<endl;
if(jwb=='y')
goto a;
getch()
}
Tidak ada komentar:
Posting Komentar