#include
Kemudian mendeklarasikan variabel :
main() {
int i,pil,tothrg,byr,hrg,jml,kmb;
char menu;
printf("Warung Cak Kar\n");
printf("Menu Makanan Harga\n");
for (i=0; i<32;>
printf("-");
printf("\n");
Mendeklarasikan isi :
printf("1. Sate Kelinci Rp.15000\n");
printf("2. Ayam Kremes Rp.12000\n");
printf("3. Coto Makassar Rp.12000\n");
printf("4. Lontong Sayur Rp.13500\n");
printf("5. Rendang Daging Rp.18000\n");
printf("6. Es Teh Manis Rp.2500\n");
printf("7. Es Jeruk Rp.3500\n");
printf("\n");
printf("Pilihan Anda adalah ");
scanf("%d", &pil);
if (pil==1)
hrg=15000;
if (pil==2)
hrg=12000;
if (pil==3)
hrg=12000;
if (pil==4)
hrg=13500;
if (pil==5)
hrg=18000;
if (pil==6)
hrg=2500;
if (pil==7)
hrg=3500;
printf("\n");
printf("Menu Pilihan\n");
for (i=0; i<22;>
printf("-");
printf("\n");
printf("\n");
if (pil==1)
printf("Sate Kelinci\n");
if (pil==2)
printf("Ayam Kremes\n");
if (pil==3)
printf("Coto Makassar\n");
if (pil==4)
printf("Lontong Sayur\n");
if (pil==5)
printf("Rendang Daging\n");
if (pil==6)
printf("Es Teh Manis\n");
if (pil==7)
printf("Es Jeruk\n");
printf("\n");
printf("Jumlah yang Dipesan ");
scanf("%d", &jml);
tothrg = jml * hrg;
printf("Harga Total : Rp. %d\n", tothrg);
printf("Dibayar : Rp. ");
scanf("%d", &byr);
kmb = byr - tothrg;
printf("Uang Kembalian : Rp. %d", kmb);
Kami menyediakan program .cpp yang dapat dijalankan pada Borland C++
We served program .cpp that can run in Borland C++ , that you can download in : that link.. For used , after download you must to convert in .cpp mode !!
3 comments:
tengs
Semoga membantu Wahyuni .. Terima kasih telah mengunjungi Blog kami..
coach purses
cheap oakleys
michael kors outlet online
instyler ionic styler
tory burch sandals
monster headphones
herve leger dresses
valentino outlet
louis vuitton outlet
coach factory outlet
cheap oakley sunglasses
rolex watches
ghd hair straighteners
monster beats outlet
ray ban wayfarer
toms outlet
cheap nba jerseys
kobe bryants shoes
ray ban sunglasses
burberry outlet
nike air max uk
burberry handbags
cheap soccer jerseys
coach outlet
ed hardy t-shirts
mac makeup
true religion jeans
kate spade handbags
burberry factory outlet
ray ban sunglasses online
cheap ray ban sunglasses
cheap oakley sunglasses
ralph lauren polo shirts
louis vuitton outlet
burberry handbags
babyliss
discount oakley sunglasses
mont blanc pens
karen millen dresses
new balance 574
2015406li
Post a Comment
Tim Gudang Materi mengharapkan komentar anda sebagai kritik dan saran untuk kami .. Hubungi kami jika anda mengalami kesulitan !