#include
<iostream.h>
#include <conio.h>
int main (void)
{
float x, y, tot;
cout<<”Program mencari harga total barang\n”;
cout<<”Masukkan jumlah barang = “; cin>>x;
cout<<”Masukkan harga per unit = “; cin>>y;
#include <conio.h>
int main (void)
{
float x, y, tot;
cout<<”Program mencari harga total barang\n”;
cout<<”Masukkan jumlah barang = “; cin>>x;
cout<<”Masukkan harga per unit = “; cin>>y;
cout<<”jumlah
barang = “<<x<<endl;
cout<<”harga per unit = “<<y<<endl;
tot=x*y;
cout<<”Harga Total = “<<tot;
getch();
}
cout<<”harga per unit = “<<y<<endl;
tot=x*y;
cout<<”Harga Total = “<<tot;
getch();
}