Contoh Listing Program C++ Diskon



#include<vcl.h>
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
main()
{
int jml,d,tot;
printf("Jumlah Harga Pembelian= Rp.");scanf("%d",&jml);
if (jml>= 100000)
{
d=jml*10/100;
tot=jml-d;
printf("Jumlah Diskon Yang Di Dapat= Rp.%d\n", d);
printf("total pembayaran= Rp.%d\n", tot);
}
else
printf("total pembayaran= Rp.%d\n",jml );
getch();
}                         

Previous
Next Post »
Thanks for your comment

Random Posts