TUGAS 2.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { puts("-----------------------------------"); puts("Program Penjualan Roti Keset Condet"); puts("-----------------------------------"); float Harga = 28000; int Jumlah = 10; printf("Harga Satuan \t: %.2f \n",Harga); printf("Jumlah Beli \t: %d \n",Jumlah); puts("-----------------------------------"); float Subtotal = Harga * Jumlah; float PPN = Subtotal * 0.1; float Total = Subtotal + PPN; printf("Subtotal \t: Rp. %.2f \n",Subtotal); printf("PPN \t\t: Rp. %.2f \n",PPN); printf("Total \t\t: Rp. %.2f \n",Total); puts("-----------------------------------"); puts("Nama : Rosdiana Fitriyani"); puts("NIM : 1620230020"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines