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

1 komentar:

Anonymous,  23 January 2022 at 10:43  

11bet - vntopbet.com
11bet is 우리카지노 계열사 a top betting service for you to enjoy our best sports betting odds. The matchpoint company offers some of the 11bet highest online sports betting odds available

Post a Comment

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