#include<conio.h>
#include<stdio.h>
#include<iostream.h>
main()
{
//DEKLARASI VARIABEL
char nama_kasir[30],tgl[20],nama_konsumen[30];
float jumlah_harga,jumlah_liter,total_bayar,ppn,harga_per_liter=4500;
//INPUT
cout<<" SPBU 182.74.44"<<endl;
cout<<" APL TGR1"<<endl;
cout<<"*************************************"<<endl;
cout<<"Nama Kasir : ";gets(nama_kasir);
cout<<"Tanggal : ";gets(tgl);
cout<<endl;
cout<<"Nama Konsumen : ";gets(nama_konsumen);
cout<<"Jumlah Liter : ";cin>>jumlah_liter;
cout<<"Harga/Liter : Rp."<<harga_per_liter<<endl;
cout<<"--------------------------------------------------------"<<endl;
//PROSES
jumlah_harga=harga_per_liter*jumlah_liter;
ppn=jumlah_harga*10/100;
total_bayar=jumlah_harga+ppn;
//OUTPUT
cout<<"Jumlah Harga : Rp."<<jumlah_harga<<endl;
cout<<"PPn 10% : Rp."<<ppn<<endl;
cout<<"Total Bayar : Rp."<<total_bayar<<endl;
cout<<endl;
cout<<" T E R I M A K A S I H"<<endl;
getch();
}
selesai juga dah sok mangga atuh