Tugas 2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { cout << "------------------------------------------"<<endl; cout << "Program Menghitung Nilai akhir"<<endl; cout << "------------------------------------------"<<endl; int Absen = 100; int Tugas = 80; int UTS = 90; int UAS = 60; float Total; float Nilai Absen = Absen * 0.1; float Nilai Tugas = Tugas * 0.2; float Nilai UTS = UTS * 0.3; float Nilai UAS = UAS * 0.4; float Total = Nilai Absen + Nilai Tugas + Nilai UTS + Nilai UAS; printf("Masukan Nilai Absen \t (10%): %d \n", Nilai Absen); printf("Masukan Nilai Tugas \t (20%): %d \n", Nilai Tugas); printf("Masukan Nilai UTS \t\t (30%): %d \n", Nilai UTS); printf("Masukan Nilai UAS \t\t (40%): %d \n", Nilai UAS); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines