#include <iostream.h>
#include <conio.h>
int main()
{
int jumlah;
float harga_per_satuan, harga_total;
jumlah = 50;
harga_per_satuan = 15.7;
harga_total = jumlah * harga_per_satuan;
cout<<"Jumlah = "<<jumlah<<endl;
cout<<"Harga Per Satuan = "<<harga_per_satuan<<endl;
cout<<"Harga Total = "<<harga_total<<endl;
getch();
}
Output :
0 komentar:
Posting Komentar