Tugas 2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; // Ananda Rakhma Aulia // 3420220024 int main() { int absen, tugas, uts, uas; float total; printf("------------------------------\n"); printf("Program Menghitung Nilai Akhir\n"); printf("------------------------------\n"); printf("Masukan nilai Absen (10%%):\n"); printf("Masukan nilai Tugas (20%%):\n"); printf("Masukan nilai UTS (30%%):\n"); printf("Masukan nilai UAS (40%%):\n"); scanf("%d %d %d %d", &absen, &tugas, &uts, &uas); total = (absen * 0.10f) + (tugas * 0.20f) + (uts * 0.30f) + (uas * 0.40f); printf("------------------------------\n"); printf("Nilai Total adalah \t : %.2f\n", total); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines