Latihan CPP 4.3

Run Settings
LanguageC++
Language Version
Run Command
#include<iostream> #include <stdio.h> #include <string.h> using namespace std; void garis() { printf("\n==============================================="); } void author () { printf("\nNama : la ode ian"); printf("\nNim : 3420210002"); } int main() { int nilai; char X[10]; printf("\n Inputkan sebuah nilai\t\t:"); scanf("%i", &nilai); printf("\n nilai yang anda masukan adalah\t: %i", nilai); if (nilai >= 60) strcpy(X,"LULUS"); else strcpy(X,"GAGAL"); printf("\n %s", X); printf("\n Program Selesai."); garis(); author(); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines