Tugas2.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { cout<<"---------------------------------------"<<endl; puts("Program Penjualan Katsu Mentai"); cout<<"---------------------------------------"<<endl; float harga = 15000; int jumlah = 10; printf("Harga Satuan \t: %.2f \n",harga); printf("Jumlah \t\t: %d \n",jumlah); cout<<"---------------------------------------"<<endl; float Subtotal = harga * jumlah; float Diskon = Subtotal * 0.1; float Total = Subtotal - Diskon; printf("Subtotal \t: Rp. %.2f \n",Subtotal); printf("Diskon 10 persen: Rp. %.2f \n",Diskon); printf("Total \t\t: Rp. %.2f \n",Total); cout <<"---------------------------------------"<<endl; cout <<"Nama : Nur Izzati Istiqlal"<<endl; cout <<"NIM : 1620230004"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines