Tugas2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int Absen, Tugas, UTS, UAS; puts ("-----------------------------------"); puts ("Program Menghitung Nilai Akhir"); puts ("-----------------------------------"); printf ("Masukan Nilai Absen (10%) : \n"); scanf("%d",&Absen); printf ("Masukan Nilai Tugas (20%) : \n"); scanf("%d",&Tugas); printf ("Masukan Nilai Absen (30%) : \n"); scanf("%d",&UTS); printf ("Masukan Nilai Absen (40%) : \n"); scanf("%d",&UAS); puts ("-----------------------------------"); printf("Nilai Total adalah : %.2f \n", Absen * 0.1 + Tugas * 0.2 + UTS * 0.3 + UAS * 0.4 ); puts ("-----------------------------------"); cout <<"Nama : Muhammad Hikmal Faturrahman"<< endl; cout <<"NIM : 1620230001"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines