CPPLatihan2-5

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <string.h> using namespace std; int main() { char nim[10]; char nama[30]; int kehadiran, tugas, uts, uas; float nilai_akhir; strcpy(nim, "141150123"); strcpy(nama, "Achmad Solichin"); kehadiran = 100; tugas = 90; uts = 83; uas = 86; nilai_akhir = (0.1 * kehadiran) + (0.2 * tugas) + (0.3* uts) + (0.4 * uas); printf("NIM \t: %s", nim); printf("\nNAMA \t: %s", nama); printf("\nABSEN \t: %i", kehadiran); printf("\nTUGAS \t: %i", tugas); printf("\nUTS \t: %i", uts); printf("\nUAS \t: %i", uas); printf("\nTOTAL \t: %.2f", nilai_akhir); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines