AlgoritmaTugas2.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int jumlah = 6; float harga = 10250.75; float subtotal = harga * jumlah; float diskon = 0.1 * subtotal; float total = subtotal - diskon; cout<<"-----------------------------------"<<endl; cout<<"Program Penjualan Marshmallow Plain"<<endl; cout<<"-----------------------------------"<<endl; printf("Harga Satuan : Rp %.2f\n", harga); printf("Jumlah Beli : %d\n",jumlah); cout<<"-----------------------------------"<<endl; printf("Subtotal : Rp %.2f\n",subtotal); printf("Diskon 10 Persen : Rp %.2f\n",diskon); printf("Total : Rp %.2f\n",total); cout<<"-----------------------------------"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines