tugas 2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; //Nama : Moh.Faqih s.karim //NIM : 3420230034 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.3) + (uts * 0.3) + (uas * 0.4); cout<<"\n=================================="<<endl; printf("Nilai Total adalah : %.2f", total); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines