soal tipe A
#include
#include
#include
main()
{
char nmpembeli[20],kdkue,*nmkue;
long int hrgkue,byr;
int jmlkue;
cout<<""<
cout<<" Jumlah Kue\t\t= ";cin>>jmlkue;
if (kdkue=='1')
{nmkue="Bolu Black Forest";
hrgkue=60000;}
else
if(kdkue=='2')
{nmkue="Cheese Cake";
hrgkue=45000;}
else
if(kdkue=='3')
{nmkue="Banana Cake";
hrgkue=25500;}
else
{nmkue="Strawbery Cake";
hrgkue=35000;}
clrscr();
cout<<""<
cout<<" Jumlah Bayar\t= "<
getch();
}
Tidak ada komentar:
Posting Komentar