Tugas algoritma 2.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { cout<<"tugas algoritma 2.1\n"; cout<<"nama = raffais nur asha\n"; cout<<"nim = 3420240013\n"; int jumlah_beli; float harga_per_satuan, subtotal, diskon, total; harga_per_satuan = 82250.75; jumlah_beli = 3; subtotal = harga_per_satuan * jumlah_beli; diskon = subtotal * 0.10; total = subtotal - diskon; printf("-----------------------------------------\n"); printf("Program Penjualan kemeja\n"); printf("-----------------------------------------\n"); printf("Harga Satuan : Rp %.2f\n", harga_per_satuan); printf("Jumlah Beli : %d\n", jumlah_beli); printf("-----------------------------------------\n"); printf("Subtotal : Rp %.2f\n", subtotal); printf("Diskon 10 Persen : Rp %.2f\n", diskon); printf("Total : Rp %.2f\n", total); printf("-----------------------------------------\n"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines