Tugas2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; // Adera Wahyu Sutrisno // 3420230039 // PPKM int main() { int absen, tugas, uts, uas; float total; cout <<"------------------------------"<<endl; cout <<"Program Menghitung Nilai Akhir"<<endl; cout <<"------------------------------"<<endl; printf("Masukan nilai absen (10%) : "); scanf("%d",&absen); printf("\nMasukan nilai tugas (20%) : "); scanf("%d",&tugas); printf("\nMasukan nilai uts (30%) : "); scanf("%d",&uts); printf("\nMasukan nilai uas (40%) : "); scanf("%d",&uas); total = (absen * 0.1)+ (tugas * 0.2) + (uts * 0.3) + (uas * 0.4 ); printf("\nNilai total adalah: %.2f",total); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines