Professional Documents
Culture Documents
h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<windows.h>
#define cetak cout<<
#define input cin>>
b(10,'*');
cetak " Fie's Earrings Acc ";
b(10,'*');
cetak "\n\nList :\n";
cetak "\t1. Earrings Keropi\t: 50000\n";
cetak "\t2. Earrings Bear\t: 45000\n";
cetak "\t3. Earrings Cat\t\t: 50000\n";
cetak "\t4. Earrings Pudel\t: 75000\n";
cetak "\t5. Earrings Mickey\t: 35000\n";
b(45,'_');
cetak endl<<endl;
st=qty*price;
if(qty>=5){
disk=st*10/100;
}else{
disk=0;
}
total=st-disk;
cetak "subtotal\t: "<<st<<endl;
cetak "discount\t: "<<disk<<endl;
b(45,'_');
cetak "\nTotal\t\t: "<<total<<endl;
cetak "amount of money\t: ";input nominal;
cetak "\nchange\t\t: "<<nominal-total;
cetak endl<<endl<<endl<<endl;
char x[]="*** thx for coming to my shop, have a nice day ***\n";
int a,b,i,n;
n=strlen(x);
for(a=0; a<500000;a++){
for(b=0; b<500;b++){
}
}
printf("%c",x[i]);
}
getch();
}