Latihan 2.2

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; // Ananda Rakhma Aulia // 3420220024 int main() { int absen, tugas; float total; printf("Masukkan nilai absen: "); scanf("%d",&absen); printf("Masukkan nilai tugas: "); scanf("%d",&tugas); total = (absen + tugas) / 2; printf("\nNilai total adalah: %.2f", total); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines