Tugas2.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { cout<<"--------------------------------"<<endl; puts("Program Penjualan Sushi"); cout<<"--------------------------------"<<endl; float Harga =10000; 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 \t\t: Rp. %.2f \n",Diskon); printf("Total \t\t: Rp. %.2f \n",Total); cout<<"--------------------------------"<<endl; cout<<"Nama : Kesa Kamila"<<endl; cout<<"NIM : 1620230003"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines