Quick actions

cmd+k|ctrl+k

Navigation

Languages

Latihan CPP 4.3

Snippet info

Language

Cpp

Visibility

public

Author

laodeiyan21

Created

2025-11-29T01:43:37.233635Z

Updated

2025-12-29T02:21:11.494317Z

#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;
}
INFO