#include<stdio.h>
main()
{
double total_pembelian, discount=0;
printf("total pembelian= Rp ");
scanf("%lf", &total_pembelian);
if (total_pembelian >= 100.000)
discount =0.05 * total_pembelian;
printf("besarnya discount= Rp %.2lf\n", discount);
}
Selasa, 12 April 2016
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar