Sunday, 2 October 2016

C++ - Menghitung Harga Buah Jeruk



#include <stdio.h>
#include <conio.h>
#include <iostream.h>

main()
{
float qty,harga=4500,tharga;

printf("\n ======================================================= \n");
printf("\n TOKO BUAH BIMA X \n");
printf("\n Jl. ABC Gang Jambu Rt01/01 Duren Karawang \n");
printf("\n ======================================================= \n");

printf("\n Buah : JERUK       \n");
printf("\n Harga : Rp.4.500,- \n");
printf("\n Qty : ");  scanf("%f",&qty);

// Hitung total harga
tharga=qty*harga;

printf("\n Total Harga: Rp.%.2f\n",tharga);
printf("\n =======================================================\n");
printf("\n TERIMA KASIH TELAH BERBELANJA\n");
printf("\n =======================================================\n");

getch();
}



Semoga Bermanfaat
Comments
0 Comments

0 comments:

Post a Comment

follow me

Kasih Makan Hamsterku

Networked Blogs

  © Ratna-Always For You The Transformers by Blog Tips And Trick 2009