Tugas 2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; //NAMA : Dhafin Shabir Alfatih //NIM : 3420230036 int main() { int Absen, Tugas, Uts, Uas; float total; printf("====================================\n"); printf("Program Menhitung Nilai Akhir \n"); printf("====================================\n"); printf("Masukan nilai Absen (10%):\n"); scanf("%d",&Absen); printf("Masukan nilai Tugas (30%):\n"); scanf("%d",&Tugas); printf("Masukan nilai UTS (30%):\n"); scanf("%d",&Uts); printf("Masukan nilai UAS (40%):\n"); scanf("%d",&Uas); total = (Absen * 0.1) + (Tugas * 0.3) + (Uts * 0.3) + (Uas * 0.4); printf("====================================\n"); printf("NIlai Total adalah\t : %.2f \n", total); printf("====================================\n"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines